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

public final Enum CollectionType

extends Enum<CollectionType>
Class Inheritance

Collection types for the Reference annotation.
Author
$Id: c74db1029e5497404bc4d5f8ad51648ecf922b9c $
Since
1.4

Field Summary

Modifier and TypeField and Description
public static final CollectionType
PROPERTIES

The properties collection type is used to indicate the collection holds unmodifiable Maps containing the service properties of the bound services.

public static final CollectionType
REFERENCE

The reference collection type is used to indicate the collection holds Service References for the bound services.

public static final CollectionType
SERVICE

The service collection type is used to indicate the collection holds the bound service objects.

public static final CollectionType
SERVICEOBJECTS

The serviceobjects collection type is used to indicate the collection holds Component Service Objects for the bound services.

public static final CollectionType
TUPLE

The tuple collection type is used to indicate the collection holds unmodifiable Map.Entries whose key is an unmodifiable Map containing the service properties of the bound service, as specified in PROPERTIES, and whose value is the bound service object.

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

Field Detail

PROPERTIESback to summary
public static final CollectionType PROPERTIES

The properties collection type is used to indicate the collection holds unmodifiable Maps containing the service properties of the bound services.

The Maps must implement Comparable with the compareTo method comparing service property maps using an ordering which is the same as the natural ordering of ServiceReferences as specified in ServiceReference.compareTo.

REFERENCEback to summary
public static final CollectionType REFERENCE

The reference collection type is used to indicate the collection holds Service References for the bound services.

SERVICEback to summary
public static final CollectionType SERVICE

The service collection type is used to indicate the collection holds the bound service objects.

This is the default collection type.

SERVICEOBJECTSback to summary
public static final CollectionType SERVICEOBJECTS

The serviceobjects collection type is used to indicate the collection holds Component Service Objects for the bound services.

TUPLEback to summary
public static final CollectionType TUPLE

The tuple collection type is used to indicate the collection holds unmodifiable Map.Entries whose key is an unmodifiable Map containing the service properties of the bound service, as specified in PROPERTIES, and whose value is the bound service object.

The Map.Entries must implement Comparable with the compareTo method comparing service property maps using an ordering which is the same as the natural ordering of ServiceReferences as specified in ServiceReference.compareTo.

valueback to summary
private final String value

Constructor Detail

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