@Documented @Qualifier @Repeatable(value=PIDs.class) @Retention(value=RUNTIME) @Target(value={FIELD,METHOD,PARAMETER,TYPE}) public @interface PID
ComponentScoped
to specify
singleton configurations and their policy.Modifier and Type | Optional Element and Description |
---|---|
ConfigurationPolicy |
policy
The configuration policy associated with this PID.
|
String |
value
The configuration PID for the configuration of this Component.
|
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:
@PID(CDI_COMPONENT_NAME)
public abstract ConfigurationPolicy policy
Controls how the configuration must be satisfied depending on the presence
and type of a corresponding Configuration object in the OSGi Configuration
Admin service. Corresponding configuration is a Configuration object where
the PID is equal to value
.
If not specified, the configuration is not required.
Copyright © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0