You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that Pax CDI still supports the CDI 1.0 explicit bean archives only. Implicit bean archive support was added in CDI 1.1. An implicit bean archive is an archive that either:
or does not have beans.xml file at all - if classes with bean defining annotations are present this archive is treated as if it had beans.xml with bean-discovery-mode="annotated"
Pax CDI delivers all classes, just filtered by OSGi visibility rules.
I don't quite see the point in the 3.0 version - doesn't Weld have to inspect the scope annotations on (candidate) bean classes anyway, so what's the point of expecting the environment to do it?
Jozef Hartinger created PAXCDI-186
It seems that Pax CDI still supports the CDI 1.0 explicit bean archives only. Implicit bean archive support was added in CDI 1.1. An implicit bean archive is an archive that either:
bean-discovery-mode="annotated"
attribute. In such archive only classes annotated with a bean defining annotation (scope, stereotype, etc.) are recognized as beans. Other classes are not recognized as CDI beans. During Weld initialization the list of such classes should be sent to Weld as bean classes using http://docs.jboss.org/weld/javadoc/3.0/weld-spi/org/jboss/weld/bootstrap/spi/BeanDeploymentArchive.html#getBeanClasses--bean-discovery-mode="annotated"
http://lists.jboss.org/pipermail/weld-dev/2015-May/003336.html
Fixed in: 1.1.4
Votes: 1, Watches: 4
The text was updated successfully, but these errors were encountered: