@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.
public abstract 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 © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0