Package org.apache.felix.scr.impl.helper
Class ComponentServiceObjectsHelper
- java.lang.Object
-
- org.apache.felix.scr.impl.helper.ComponentServiceObjectsHelper
-
public class ComponentServiceObjectsHelper extends java.lang.Object
Utility class for handling references using a ComponentServiceObjects to get services.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
ComponentServiceObjectsHelper.ComponentServiceObjectsImpl
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description ComponentServiceObjectsHelper(org.osgi.framework.BundleContext bundleContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup()
void
closeServiceObjects(org.osgi.framework.ServiceReference<?> ref)
<T> T
getPrototypeRefInstance(org.osgi.framework.ServiceReference<T> ref)
org.osgi.service.component.ComponentServiceObjects
getServiceObjects(org.osgi.framework.ServiceReference<?> ref)
-
-
-
Field Detail
-
bundleContext
private final org.osgi.framework.BundleContext bundleContext
-
services
private final java.util.concurrent.ConcurrentMap<org.osgi.framework.ServiceReference<?>,ComponentServiceObjectsHelper.ComponentServiceObjectsImpl> services
-
closedServices
private final java.util.List<ComponentServiceObjectsHelper.ComponentServiceObjectsImpl> closedServices
-
prototypeInstances
private final java.util.concurrent.ConcurrentMap<org.osgi.framework.ServiceReference<?>,java.lang.Object> prototypeInstances
-
-
Method Detail
-
cleanup
public void cleanup()
-
getServiceObjects
public org.osgi.service.component.ComponentServiceObjects getServiceObjects(org.osgi.framework.ServiceReference<?> ref)
-
closeServiceObjects
public void closeServiceObjects(org.osgi.framework.ServiceReference<?> ref)
-
getPrototypeRefInstance
public <T> T getPrototypeRefInstance(org.osgi.framework.ServiceReference<T> ref)
-
-