@Documented @Retention(value=CLASS) @Target(value={TYPE,PACKAGE}) @Requirement(namespace="osgi.extender", name="osgi.cdi", version="1.0.0") public @interface RequireCDIExtender
Modifier and Type | Optional Element and Description |
---|---|
java.lang.Class<?>[] |
beans
Specify OSGi Beans classes to be used by the CDI container.
|
java.lang.String[] |
descriptor
Specify CDI bean descriptor file paths to be searched on the
Bundle-ClassPath . |
@Attribute public abstract java.lang.String[] descriptor
Bundle-ClassPath
. For example:
@RequireCDIExtender(descriptor = "META-INF/beans.xml")
@Attribute public abstract java.lang.Class<?>[] beans
@RequireCDIExtender(beans = {com.foo.BarImpl.class, com.foo.impl.BazImpl.class})
Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0