use of org.osgi.service.component.ComponentServiceObjects in project felix by apache.
the class ComponentServiceObjectsHelper method getServiceObjects.
public ComponentServiceObjects getServiceObjects(final ServiceReference<?> ref) {
ComponentServiceObjectsImpl cso = this.services.get(ref);
if (cso == null) {
final ServiceObjects serviceObjects = this.bundleContext.getServiceObjects(ref);
if (serviceObjects != null) {
cso = new ComponentServiceObjectsImpl(serviceObjects);
final ComponentServiceObjectsImpl oldCSO = this.services.putIfAbsent(ref, cso);
if (oldCSO != null) {
cso = oldCSO;
}
}
}
return cso;
}
Aggregations