| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | OSGIServiceHelper.
Service factory simply instantiating the configured service. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Enumeration | |
| public static <T> void | |
| public static <T> void |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| OSGIServiceHelper | back to summary |
|---|---|
| private OSGIServiceHelper() | |
| getResources | back to summary |
|---|---|
| public Enumeration | |
| registerService | back to summary |
|---|---|
| public static <T> void registerService(Bundle bundle, Class<T> serviceClass, Class<? extends T> implClass) | |
| unregisterService | back to summary |
|---|---|
| public static <T> void unregisterService(Bundle bundle, Class<T> serviceClass, Class<? extends T> implClass) | |
| Modifier and Type | Field and Description |
|---|---|
| private final Class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public S | getService(Bundle bundle, ServiceRegistration<S> registration)
Implements org. Returns a service object for a bundle. |
| public void | ungetService(Bundle bundle, ServiceRegistration<S> registration, S service)
Implements org. Releases a service object customized for a bundle. |
| serviceClass | back to summary |
|---|---|
| private final Class<? extends S> serviceClass | |
| JDKUtilServiceFactory | back to summary |
|---|---|
| public JDKUtilServiceFactory(Class<? extends S> serviceClass) | |
| getService | back to summary |
|---|---|
| public S getService(Bundle bundle, ServiceRegistration<S> registration) Implements org. Doc from org. Returns a service object for a bundle.
The Framework invokes this method the first time the specified
The Framework must check that the returned service object is valid. If
the returned service object is
The Framework caches the valid service object and will return the same
service object on any future call to
| |
| ungetService | back to summary |
|---|---|
| public void ungetService(Bundle bundle, ServiceRegistration<S> registration, S service) Implements org. Doc from org. Releases a service object customized for a bundle. The Framework invokes this method when a service has been released by a bundle. The service object may then be destroyed.
If this method throws an exception, a framework event of type
| |