Package org.osgi.service.cdi.annotations
Annotation Interface Reference
Annotation used on injection points informing the CDI container that the
injection should apply a service obtained from the OSGi registry.
*
- See Also:
-
- "Reference Annotation"
-
Element Details
-
value
Class<?> valueSpecify the type of the service for this reference.If not specified, the type of the service for this reference is derived from the injection point type.
If a value is specified it must be type compatible with (assignable to) the service type derived from the injection point type, otherwise a definition error will result.
- Default:
- java.lang.Object.class
-
target
String targetThe target property for this reference.If not specified, no target property is set.
- Default:
- ""
-