public class SingleRefPair<S,T> extends RefPair<S,T>
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.atomic.AtomicReference<T> |
serviceObjectRef |
Constructor and Description |
---|
SingleRefPair(org.osgi.framework.ServiceReference<T> ref) |
Modifier and Type | Method and Description |
---|---|
T |
getServiceObject(ComponentContextImpl<S> key) |
boolean |
getServiceObject(ComponentContextImpl<S> key,
org.osgi.framework.BundleContext context) |
boolean |
setServiceObject(ComponentContextImpl<S> key,
T serviceObject) |
java.lang.String |
toString() |
T |
ungetServiceObject(ComponentContextImpl<S> key) |
void |
ungetServiceObjects(org.osgi.framework.BundleContext bundleContext) |
private final java.util.concurrent.atomic.AtomicReference<T> serviceObjectRef
public SingleRefPair(org.osgi.framework.ServiceReference<T> ref)
public T getServiceObject(ComponentContextImpl<S> key)
getServiceObject
in class RefPair<S,T>
public boolean setServiceObject(ComponentContextImpl<S> key, T serviceObject)
setServiceObject
in class RefPair<S,T>
public T ungetServiceObject(ComponentContextImpl<S> key)
ungetServiceObject
in class RefPair<S,T>
public void ungetServiceObjects(org.osgi.framework.BundleContext bundleContext)
ungetServiceObjects
in class RefPair<S,T>
public java.lang.String toString()
toString
in class java.lang.Object
public boolean getServiceObject(ComponentContextImpl<S> key, org.osgi.framework.BundleContext context)
getServiceObject
in class RefPair<S,T>