public class ServiceObjectsImpl<S> extends java.lang.Object implements ServiceObjects<S>
ServiceObjects| Modifier and Type | Method and Description |
|---|---|
S |
getService()
Returns a service object for the
associated service. |
ServiceReference<S> |
getServiceReference()
Returns the
ServiceReference for the service associated with this
ServiceObjects object. |
void |
ungetService(S service)
Releases a service object for the
associated service. |
public S getService()
associated service.getService in interface ServiceObjects<S>null if
the service is not registered, the customized service object
returned by a ServiceFactory does not implement the
classes under which it was registered or the
ServiceFactory threw an exception.ServiceObjects.getService()public void ungetService(S service)
associated service.ungetService in interface ServiceObjects<S>service - A service object previously provided by this
ServiceObjects object.org.osgi.framework.ServiceObjects#ungetService()public ServiceReference<S> getServiceReference()
ServiceReference for the service associated with this
ServiceObjects object.getServiceReference in interface ServiceObjects<S>ServiceReference for the service associated with this
ServiceObjects object.ServiceObjects.getServiceReference()