public class ComponentServiceObjectsHelper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
ComponentServiceObjectsHelper.ComponentServiceObjectsImpl |
Modifier and Type | Field and Description |
---|---|
private org.osgi.framework.BundleContext |
bundleContext |
private java.util.List<ComponentServiceObjectsHelper.ComponentServiceObjectsImpl> |
closedServices |
private java.util.concurrent.ConcurrentMap<org.osgi.framework.ServiceReference,java.lang.Object> |
prototypeInstances |
private java.util.concurrent.ConcurrentMap<org.osgi.framework.ServiceReference<?>,ComponentServiceObjectsHelper.ComponentServiceObjectsImpl> |
services |
Constructor and Description |
---|
ComponentServiceObjectsHelper(org.osgi.framework.BundleContext bundleContext) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup() |
void |
closeServiceObjects(org.osgi.framework.ServiceReference<?> ref) |
<T> T |
getPrototypeRefInstance(org.osgi.framework.ServiceReference<T> ref,
org.osgi.framework.ServiceObjects<T> serviceObjects) |
org.osgi.service.component.ComponentServiceObjects |
getServiceObjects(org.osgi.framework.ServiceReference<?> ref) |
private final org.osgi.framework.BundleContext bundleContext
private final java.util.concurrent.ConcurrentMap<org.osgi.framework.ServiceReference<?>,ComponentServiceObjectsHelper.ComponentServiceObjectsImpl> services
private final java.util.List<ComponentServiceObjectsHelper.ComponentServiceObjectsImpl> closedServices
private final java.util.concurrent.ConcurrentMap<org.osgi.framework.ServiceReference,java.lang.Object> prototypeInstances
public ComponentServiceObjectsHelper(org.osgi.framework.BundleContext bundleContext)
public void cleanup()
public org.osgi.service.component.ComponentServiceObjects getServiceObjects(org.osgi.framework.ServiceReference<?> ref)
public void closeServiceObjects(org.osgi.framework.ServiceReference<?> ref)
public <T> T getPrototypeRefInstance(org.osgi.framework.ServiceReference<T> ref, org.osgi.framework.ServiceObjects<T> serviceObjects)