Top Description Fields Constructors Methods
org.osgi.service.component.annotations

public final Enum ConfigurationPolicy

extends Enum<ConfigurationPolicy>
Class Inheritance

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.

Author
$Id: 9ed4e7757d1a62e55ff576e87594067e8893c8cb $
Since
1.1

Field Summary

Modifier and TypeField 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

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Enum.toString.

Returns the name of this enum constant, as contained in the declaration.

public static ConfigurationPolicy
public static ConfigurationPolicy[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinalvalueOf

Field Detail

IGNOREback 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.

OPTIONALback 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.

REQUIREback to summary
public static final ConfigurationPolicy REQUIRE

There must be a corresponding Configuration object for the component configuration to become satisfied.

valueback to summary
private final String value

Constructor Detail

ConfigurationPolicyback to summary
private ConfigurationPolicy(String value)

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Enum.toString.

Doc from java.lang.Enum.toString.

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.

Returns:String

the name of this enum constant

Annotations
@Override
valueOfback to summary
public static ConfigurationPolicy valueOf(String name)
valuesback to summary
public static ConfigurationPolicy[] values()