In the Contexts and Dependency Injection (CDI) 1.0 OpenWebBeans implementation, interceptors, decorators and alternatives are enabled per web module or per Enterprise JavaBeans (EJB) module, if the EJB module is not contained within a web module. Therefore, if they are enabled in the beans.xml file in one Java archive (JAR) file within a web module, they are enabled for the entire web module. In the CDI 1.2 Weld implementation, these items are enabled per JAR file. Interceptors, decorators, and alternatives that are enabled in the beans.xml file in one JAR file are only enabled for that JAR file.
This rule flags the first occurrence of each of the following elements in the beans.xml file
for Java projects and EJB projects if the element contains at least one non-empty <class> child element
and the bean-discovery-mode="none" attribute is not specified on the <beans> root element:
If you want to enable the flagged interceptors, decorators, and alternatives for other JAR files within a web module, add them to the beans.xml file for that JAR file.
For more information about the Java EE 7 CDI 1.2 implementation, see Contexts and Dependency Injection 1.2 behavior changes.