@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.
|
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:
@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 © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0