Component annotation.
| Modifier and Type | Field and Description |
|---|---|
| public static final ServiceScope | BUNDLE
When the component is registered as a service, it must be registered as a bundle scope service and an instance of the component must be created for each bundle using the service. |
| public static final ServiceScope | DEFAULT
Default element value for annotation. |
| public static final ServiceScope | PROTOTYPE
When the component is registered as a service, it must be registered as a prototype scope service and an instance of the component must be created for each distinct request for the service. |
| public static final ServiceScope | SINGLETON
When the component is registered as a service, it must be registered as a bundle scope service but only a single instance of the component must be used for all bundles using the service. |
| 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 ServiceScope | |
| public static ServiceScope[] |
| BUNDLE | back to summary |
|---|---|
| public static final ServiceScope BUNDLE When the component is registered as a service, it must be registered as a bundle scope service and an instance of the component must be created for each bundle using the service. | |
| DEFAULT | back to summary |
|---|---|
| public static final ServiceScope DEFAULT Default element value for annotation. This is used to distinguish the default value for an element and should not otherwise be used. | |
| PROTOTYPE | back to summary |
|---|---|
| public static final ServiceScope PROTOTYPE When the component is registered as a service, it must be registered as a prototype scope service and an instance of the component must be created for each distinct request for the service. | |
| SINGLETON | back to summary |
|---|---|
| public static final ServiceScope SINGLETON When the component is registered as a service, it must be registered as a bundle scope service but only a single instance of the component must be used for all bundles using the service. | |
| value | back to summary |
|---|---|
| private final String value | |
| ServiceScope | back to summary |
|---|---|
| private ServiceScope(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 ServiceScope valueOf(String name) | |
| values | back to summary |
|---|---|
| public static ServiceScope[] values() | |