EnterpriseBean.getClassInterceptors() only returns annotations?

If I have class interceptors defined in ejb-jar.xml for example
<interceptor-binding>
<ejb-name>HotelBookingAction</ejb-name>
<interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
</interceptor-binding>
when I call getClassInterecptors() on my EnterpriseBean that represents HotelBookingAction I get an empty list.

Is this by design?
If so: Is there a simpler way than
((EjbModuleProperties)JavaeeModuleProperties.getInstance(module)).getXmlRoot().getInterceptors()

and then iterate over the result myself and check each interceptor if it applies?

Please sign in to leave a comment.