@ComponentScoped @Documented @Named @Retention(value=RUNTIME) @Stereotype @Target(value=TYPE) public @interface FactoryComponent
Factory components MUST always be ComponentScoped
.
Applying any other scope will result in a definition error.
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
value
The configuration PID for the configuration of this Component.
|
public abstract java.lang.String value
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. The CDI_COMPONENT_NAME
constant holds this special string.
For example:
@FactoryPID(CDI_COMPONENT_NAME)
Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0