public enum ReferenceScope extends java.lang.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 |
---|---|
java.lang.String |
toString() |
static ReferenceScope |
valueOf(java.lang.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(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<ReferenceScope>
Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0