public enum CollectionType extends java.lang.Enum<CollectionType>
Reference
annotation.Enum Constant and Description |
---|
PROPERTIES
The properties collection type is used to indicate the collection holds
unmodifiable Maps containing the service properties of the bound
services.
|
REFERENCE
The reference collection type is used to indicate the collection holds
Service References for the bound services.
|
SERVICE
The service collection type is used to indicate the collection holds the
bound service objects.
|
SERVICEOBJECTS
The serviceobjects collection type is used to indicate the collection
holds Component Service Objects for the bound services.
|
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. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
static CollectionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CollectionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CollectionType SERVICE
This is the default collection type.
public static final CollectionType REFERENCE
public static final CollectionType SERVICEOBJECTS
public static final CollectionType PROPERTIES
The Maps must implement Comparable
with the compareTo
method comparing service property maps using the same ordering as
ServiceReference.compareTo
based upon service ranking and service
id.
public static final CollectionType TUPLE
PROPERTIES
, and whose value is the bound service object.
The Map.Entries must implement Comparable
with the
compareTo
method comparing service property maps using the same
ordering as ServiceReference.compareTo
based upon service ranking
and service id.
public static CollectionType[] values()
for (CollectionType c : CollectionType.values()) System.out.println(c);
public static CollectionType 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 namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<CollectionType>
Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0