Reference annotation.
| Modifier and Type | Field and Description |
|---|---|
| public static final ReferenceScope | BUNDLE
A single service object is used for all references to the service in this bundle. |
| public static final ReferenceScope | 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. |
| public static final ReferenceScope | PROTOTYPE_REQUIRED
Bound services must have prototype service scope. |
| private final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | toString()
Overrides java. Returns the name of this enum constant, as contained in the declaration. |
| public static ReferenceScope | |
| public static ReferenceScope[] |
| BUNDLE | back to summary |
|---|---|
| public static final ReferenceScope BUNDLE A single service object is used for all references to the service in this bundle. | |
| PROTOTYPE | back to summary |
|---|---|
| public static final ReferenceScope 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. If the bound service does not have prototype service scope, then
this reference scope behaves the same as | |
| PROTOTYPE_REQUIRED | back to summary |
|---|---|
| public static final ReferenceScope PROTOTYPE_REQUIRED Bound services must have prototype service scope. Each instance of the component with this reference can receive a unique instance of the service. | |
| value | back to summary |
|---|---|
| private final String value | |
| ReferenceScope | back to summary |
|---|---|
| private ReferenceScope(String value) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. 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. | |
| valueOf | back to summary |
|---|---|
| public static ReferenceScope valueOf(String name) | |
| values | back to summary |
|---|---|
| public static ReferenceScope[] values() | |