SeamFramework.orgCommunity Documentation

Chapter 8. CDI activation in bean bundles

Weld-OSGi detects a bundle as a bean bundle if:

The managed set of bean classes of a bean class contains all the class file under all META-INF/beans.xml root paths.

CDI and Weld-OSGi features are enabled for all these manageable paths.

Everything possible in CDI application is possible in bean bundle. They can take advantage of injection, producers, interceptors, decorators and alternative. But influence boundary of the CDI compliant container stay within the bean bundle managed paths for classic CDI usages. So external dependencies cannot be injected and interceptor, decorator or alternative of another bean bundle cannot be used (yet interceptors, decorators and alternatives still need to be declares in the bean bundle bean.xml file).

That is all we will say about classic CDI usages, please report to CDI documentation for more information.