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

public final Enum FieldOption

extends Enum<FieldOption>
Class Inheritance

Field options for the Reference annotation.
Author
$Id: 66e2f2b10dc040e53154b175ceb20c2f90972f24 $
Since
1.3

Field Summary

Modifier and TypeField and Description
public static final FieldOption
REPLACE

The replace field option is used to replace the field value with a new value when there are changes to the bound services.

public static final FieldOption
UPDATE

The update field option is used to update the collection referenced by the field when there are changes to the bound services.

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

Field Detail

REPLACEback to summary
public static final FieldOption REPLACE

The replace field option is used to replace the field value with a new value when there are changes to the bound services.

UPDATEback to summary
public static final FieldOption UPDATE

The update field option is used to update the collection referenced by the field when there are changes to the bound services.

This field option can only be used when the field reference has dynamic policy and multiple cardinality.

valueback to summary
private final String value

Constructor Detail

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