public abstract class AbstractPrototypeRefPair<S,T> extends RefPair<S,T>
Constructor and Description |
---|
AbstractPrototypeRefPair(org.osgi.framework.ServiceReference<T> ref) |
Modifier and Type | Method and Description |
---|---|
protected abstract Collection<Map.Entry<ComponentContextImpl<S>,T>> |
clearEntries() |
abstract T |
getServiceObject(ComponentContextImpl<S> key) |
boolean |
getServiceObject(ComponentContextImpl<S> key,
org.osgi.framework.BundleContext context) |
protected abstract T |
remove(ComponentContextImpl<S> key) |
abstract boolean |
setServiceObject(ComponentContextImpl<S> key,
T serviceObject) |
abstract String |
toString() |
T |
ungetServiceObject(ComponentContextImpl<S> key) |
void |
ungetServiceObjects(org.osgi.framework.BundleContext bundleContext) |
public AbstractPrototypeRefPair(org.osgi.framework.ServiceReference<T> ref)
public abstract T getServiceObject(ComponentContextImpl<S> key)
getServiceObject
in class RefPair<S,T>
public abstract boolean setServiceObject(ComponentContextImpl<S> key, T serviceObject)
setServiceObject
in class RefPair<S,T>
protected abstract T remove(ComponentContextImpl<S> key)
protected abstract Collection<Map.Entry<ComponentContextImpl<S>,T>> clearEntries()
public final T ungetServiceObject(ComponentContextImpl<S> key)
ungetServiceObject
in class RefPair<S,T>
public final void ungetServiceObjects(org.osgi.framework.BundleContext bundleContext)
ungetServiceObjects
in class RefPair<S,T>
public final boolean getServiceObject(ComponentContextImpl<S> key, org.osgi.framework.BundleContext context)
getServiceObject
in class RefPair<S,T>
Copyright © 2006–2020 The Apache Software Foundation. All rights reserved.