public enum ReferenceScope extends Enum<ReferenceScope>
Reference
annotation.Enum Constant and Description |
---|
BUNDLE
A single service object is used for all references to the service in this
bundle.
|
PROTOTYPE
If the bound service has prototype service scope, then each instance of
the component with this reference can receive a unique instance of the
service.
|
PROTOTYPE_REQUIRED
Bound services must have prototype service scope.
|
Modifier and Type | Method and Description |
---|---|
String |
toString() |
static ReferenceScope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReferenceScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReferenceScope BUNDLE
public static final ReferenceScope PROTOTYPE
BUNDLE
.public static final ReferenceScope PROTOTYPE_REQUIRED
public static ReferenceScope[] values()
for (ReferenceScope c : ReferenceScope.values()) System.out.println(c);
public static ReferenceScope valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<ReferenceScope>
Copyright © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0