|
OSGi™ Service Platform Compendium Specification Release 4 Version 4.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ConfigurationPolicy>
org.osgi.service.component.annotations.ConfigurationPolicy
public enum ConfigurationPolicy
Configuration Policy for the 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.
| Enum Constant Summary | |
|---|---|
IGNORE
Always allow the component configuration to be satisfied and do not use the corresponding Configuration object even if it is present. |
|
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
There must be a corresponding Configuration object for the component configuration to become satisfied. |
|
| Method Summary | |
|---|---|
java.lang.String |
toString()
|
static ConfigurationPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ConfigurationPolicy[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ConfigurationPolicy OPTIONAL
public static final ConfigurationPolicy REQUIRE
public static final ConfigurationPolicy IGNORE
| Method Detail |
|---|
public static ConfigurationPolicy[] values()
for (ConfigurationPolicy c : ConfigurationPolicy.values()) System.out.println(c);
public static ConfigurationPolicy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic java.lang.String toString()
toString in class java.lang.Object
|
OSGi™ Service Platform Compendium Specification Release 4 Version 4.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||