Component annotation.
Controls whether component configurations must be satisfied depending on the presence of a corresponding Configuration object in the OSGi Configuration Admin service. A corresponding configuration is a Configuration object where the PID is the name of the component.
| Modifier and Type | Field and Description |
|---|---|
| public static final ConfigurationPolicy | IGNORE
Always allow the component configuration to be satisfied and do not use the corresponding Configuration object even if it is present. |
| public static final ConfigurationPolicy | OPTIONAL
Use the corresponding Configuration object if present but allow the component to be satisfied even if the corresponding Configuration object is not present. |
| public static final ConfigurationPolicy | REQUIRE
There must be a corresponding Configuration object for the component configuration to become satisfied. |
| private final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | toString()
Overrides java. Returns the name of this enum constant, as contained in the declaration. |
| public static ConfigurationPolicy | |
| public static ConfigurationPolicy[] |
| IGNORE | back to summary |
|---|---|
| public static final ConfigurationPolicy IGNORE Always allow the component configuration to be satisfied and do not use the corresponding Configuration object even if it is present. | |
| OPTIONAL | back to summary |
|---|---|
| public static final ConfigurationPolicy OPTIONAL Use the corresponding Configuration object if present but allow the component to be satisfied even if the corresponding Configuration object is not present. | |
| REQUIRE | back to summary |
|---|---|
| public static final ConfigurationPolicy REQUIRE There must be a corresponding Configuration object for the component configuration to become satisfied. | |
| value | back to summary |
|---|---|
| private final String value | |
| ConfigurationPolicy | back to summary |
|---|---|
| private ConfigurationPolicy(String value) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists. | |
| valueOf | back to summary |
|---|---|
| public static ConfigurationPolicy valueOf(String name) | |
| values | back to summary |
|---|---|
| public static ConfigurationPolicy[] values() | |