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
Modifier and TypeClassDescriptionstatic final class
Support inline instantiation of theFactoryComponent
annotation. -
Optional Element Summary
-
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_NAME
constant holds this special string.For example:
@FactoryPID(CDI_COMPONENT_NAME)
- Default:
- "$"
-