Package org.osgi.service.cdi.annotations
Annotation Interface FactoryComponent
@ComponentScoped
@Documented
@Named
@Retention(RUNTIME)
@Stereotype
@Target(TYPE)
public @interface FactoryComponent
Identifies a factory component.
Factory components MUST always be ComponentScoped.
Applying any other scope will result in a definition error.
- See Also:
-
- "Factory Component"
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSupport inline instantiation of theFactoryComponentannotation. -
Optional Element Summary
Optional Elements
-
Element Details
-
value
String valueThe configuration PID for the configuration of this Component.The value specifies a configuration PID who's configuration properties are available at injection points in the component.
A special string (
"$") can be used to specify the name of the component as a configuration PID. TheCDI_COMPONENT_NAMEconstant holds this special string.For example:
@FactoryPID(CDI_COMPONENT_NAME)- Default:
- "$"
-