Class SingleRefPair<S,T>
- java.lang.Object
-
- org.apache.felix.scr.impl.inject.RefPair<S,T>
-
- org.apache.felix.scr.impl.manager.SingleRefPair<S,T>
-
public class SingleRefPair<S,T> extends RefPair<S,T>
- Version:
- $Rev$ $Date$
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.atomic.AtomicReference<T>
serviceObjectRef
-
Constructor Summary
Constructors Constructor Description SingleRefPair(org.osgi.framework.ServiceReference<T> ref)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getServiceObject(ScrComponentContext key)
boolean
getServiceObject(ScrComponentContext key, org.osgi.framework.BundleContext context)
private static void
safeUngetService(org.osgi.framework.BundleContext context, org.osgi.framework.ServiceReference<?> ref)
boolean
setServiceObject(ScrComponentContext key, T serviceObject)
java.lang.String
toString()
T
ungetServiceObject(ScrComponentContext key)
void
ungetServiceObjects(org.osgi.framework.BundleContext bundleContext)
-
Methods inherited from class org.apache.felix.scr.impl.inject.RefPair
clearFailed, getRef, isDeleted, isFailed, markDeleted, markFailed
-
-
-
-
Field Detail
-
serviceObjectRef
private final java.util.concurrent.atomic.AtomicReference<T> serviceObjectRef
-
-
Constructor Detail
-
SingleRefPair
public SingleRefPair(org.osgi.framework.ServiceReference<T> ref)
-
-
Method Detail
-
getServiceObject
public T getServiceObject(ScrComponentContext key)
- Specified by:
getServiceObject
in classRefPair<S,T>
-
setServiceObject
public boolean setServiceObject(ScrComponentContext key, T serviceObject)
- Specified by:
setServiceObject
in classRefPair<S,T>
-
ungetServiceObject
public T ungetServiceObject(ScrComponentContext key)
- Specified by:
ungetServiceObject
in classRefPair<S,T>
-
ungetServiceObjects
public void ungetServiceObjects(org.osgi.framework.BundleContext bundleContext)
- Specified by:
ungetServiceObjects
in classRefPair<S,T>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getServiceObject
public boolean getServiceObject(ScrComponentContext key, org.osgi.framework.BundleContext context)
- Specified by:
getServiceObject
in classRefPair<S,T>
-
safeUngetService
private static void safeUngetService(org.osgi.framework.BundleContext context, org.osgi.framework.ServiceReference<?> ref)
-
-