Package org.apache.felix.scr.impl.helper
Class ComponentServiceObjectsHelper
java.lang.Object
org.apache.felix.scr.impl.helper.ComponentServiceObjectsHelper
Utility class for handling references using a ComponentServiceObjects
to get services.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.osgi.framework.BundleContext
private final List<ComponentServiceObjectsHelper.ComponentServiceObjectsImpl>
private final ConcurrentMap<org.osgi.framework.ServiceReference<?>,
Object> private final ConcurrentMap<org.osgi.framework.ServiceReference<?>,
ComponentServiceObjectsHelper.ComponentServiceObjectsImpl> -
Constructor Summary
ConstructorsConstructorDescriptionComponentServiceObjectsHelper
(org.osgi.framework.BundleContext bundleContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
bundleContext
private final org.osgi.framework.BundleContext bundleContext -
services
private final ConcurrentMap<org.osgi.framework.ServiceReference<?>,ComponentServiceObjectsHelper.ComponentServiceObjectsImpl> services -
closedServices
-
prototypeInstances
-
-
Constructor Details
-
ComponentServiceObjectsHelper
public ComponentServiceObjectsHelper(org.osgi.framework.BundleContext bundleContext)
-
-
Method Details
-
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)
-