9 package javolution.osgi.internal;
11 import org.osgi.framework.BundleContext;
12 import org.osgi.util.tracker.ServiceTracker;
20 private volatile ServiceTracker<C, C>
tracker;
21 private final Class<C>
type;
33 ServiceTracker<C, C> trk =
new ServiceTracker<C, C>(bc,
type,
null);
46 ServiceTracker<C, C> trk =
tracker;
48 Object[] services = trk.getServices();
49 if (services !=
null)
return services;
55 }
catch (Throwable error) {
56 throw new RuntimeException(error);