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.BundleContextprivate 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 TypeMethodDescriptionvoidcleanup()voidcloseServiceObjects(org.osgi.framework.ServiceReference<?> ref) <T> TgetPrototypeRefInstance(org.osgi.framework.ServiceReference<T> ref) org.osgi.service.component.ComponentServiceObjectsgetServiceObjects(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)
-