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

public final Enum ReferencePolicyOption

extends Enum<ReferencePolicyOption>
Class Inheritance

Policy option for the Reference annotation.
Author
$Id: fbb3167e5bbbb81a5e9ba9f649b991c834630361 $
Since
1.2

Field Summary

Modifier and TypeField and Description
public static final ReferencePolicyOption
GREEDY

The greedy policy option is a valid policy option for both static and dynamic reference policies.

public static final ReferencePolicyOption
RELUCTANT

The reluctant policy option is the default policy option for both static and dynamic reference policies.

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 ReferencePolicyOption
public static ReferencePolicyOption[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinalvalueOf

Field Detail

GREEDYback to summary
public static final ReferencePolicyOption GREEDY

The greedy policy option is a valid policy option for both static and dynamic reference policies. When a new target service for a reference becomes available, references having the greedy policy option will bind the new target service.

RELUCTANTback to summary
public static final ReferencePolicyOption RELUCTANT

The reluctant policy option is the default policy option for both static and dynamic reference policies. When a new target service for a reference becomes available, references having the reluctant policy option for the static policy or the dynamic policy with a unary cardinality will ignore the new target service. References having the dynamic policy with a multiple cardinality will bind the new target service.

valueback to summary
private final String value

Constructor Detail

ReferencePolicyOptionback to summary
private ReferencePolicyOption(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 ReferencePolicyOption valueOf(String name)
valuesback to summary
public static ReferencePolicyOption[] values()