public void refreshPackages(long[] bids) { if (bids.length == 0) { ((PackageAdmin) pkgTracker.getService()).refreshPackages(null); bids = null; } else { Bundle[] bl = new Bundle[bids.length]; for (int i = 0; i < bids.length; i++) { bl[i] = Activator.bc.getBundle(bids[i]); } ((PackageAdmin) pkgTracker.getService()).refreshPackages(bl); } }
public Map getExportedPackage(String name) { Map map = new HashMap(); ExportedPackage pkg = ((PackageAdmin) pkgTracker.getService()).getExportedPackage(name); putExportPackage(map, pkg); return map; }
public Map[] getExportedPackages(long bid) { Bundle b = -1 == bid ? null : Activator.bc.getBundle(bid); ExportedPackage[] pkgs = ((PackageAdmin) pkgTracker.getService()).getExportedPackages(b); if (pkgs == null) { return new Map[0]; } Map[] maps = new Map[pkgs.length]; for (int i = 0; i < pkgs.length; i++) { maps[i] = new HashMap(); putExportPackage(maps[i], pkgs[i]); } return maps; }
void handleServiceListenerUnreg(Collection /* <ServiceListenerEntry> */ set) { if (!isOpen() || listenerHookTracker.size() == 0) { return; } ServiceReference[] srl = listenerHookTracker.getServiceReferences(); for (int i = 0; srl != null && i < srl.length; i++) { ListenerHook lh = (ListenerHook) listenerHookTracker.getService(srl[i]); try { lh.removed(set); } catch (Exception e) { fwCtx.debug.printStackTrace( "Failed to call listener hook #" + srl[i].getProperty(Constants.SERVICE_ID), e); } } }
public boolean isBundleActivationPolicyUsed(long bid) { Bundle b = Activator.bc.getBundle(bid); return ((StartLevel) slTracker.getService()).isBundleActivationPolicyUsed(b); }
public int getInitialBundleStartLevel() { return ((StartLevel) slTracker.getService()).getInitialBundleStartLevel(); }
public boolean isBundlePersistentlyStarted(long bid) { Bundle b = Activator.bc.getBundle(bid); return ((StartLevel) slTracker.getService()).isBundlePersistentlyStarted(b); }
public void setInitialBundleStartLevel(int level) { ((StartLevel) slTracker.getService()).setInitialBundleStartLevel(level); }
public int getBundleStartLevel(long bid) { Bundle b = Activator.bc.getBundle(bid); return ((StartLevel) slTracker.getService()).getBundleStartLevel(b); }
public void setBundleStartLevel(long bid, int level) { Bundle b = Activator.bc.getBundle(bid); ((StartLevel) slTracker.getService()).setBundleStartLevel(b, level); }
public void setStartLevel(int level) { ((StartLevel) slTracker.getService()).setStartLevel(level); }
public int getStartLevel() { return ((StartLevel) slTracker.getService()).getStartLevel(); }