public void serviceLost() { while (!containers.isEmpty()) { for (Bundle bundle : getBundlesToDestroy()) { destroyContainer(bundle); } } if (bt instanceof BundleTracker) { ((BundleTracker) bt).close(); } else if (bt instanceof RecursiveBundleTracker) { ((RecursiveBundleTracker) bt).close(); } }
public void serviceFound() { LOGGER.debug("Found ProxyManager service, starting to process blueprint bundles"); if (bt instanceof BundleTracker) { ((BundleTracker) bt).open(); } else if (bt instanceof RecursiveBundleTracker) { ((RecursiveBundleTracker) bt).open(); } }
int mask = Bundle.INSTALLED | Bundle.RESOLVED | Bundle.STARTING | Bundle.STOPPING | Bundle.ACTIVE; bt = useSystemContext ? new BundleTracker(trackingContext, mask, this) : new RecursiveBundleTracker(ctx, mask, this); proxyManager = new SingleServiceTracker<ProxyManager>(ctx, ProxyManager.class, new SingleServiceListener() { public void serviceFound() {
} catch (Throwable e) { if (areMultipleFrameworksAvailable(context)) { compositeTracker = new InternalRecursiveBundleTracker(context, stateMask, customizer, tracker == null); } else {
int mask = Bundle.INSTALLED | Bundle.RESOLVED | Bundle.STARTING | Bundle.STOPPING | Bundle.ACTIVE; bt = useSystemContext ? new BundleTracker(trackingContext, mask, this) : new RecursiveBundleTracker(ctx, mask, this); proxyManager = new SingleServiceTracker<ProxyManager>(ctx, ProxyManager.class, new SingleServiceListener() { public void serviceFound() {
public void serviceLost() { while (!containers.isEmpty()) { for (Bundle bundle : getBundlesToDestroy()) { destroyContainer(bundle); } } if (bt instanceof BundleTracker) { ((BundleTracker) bt).close(); } else if (bt instanceof RecursiveBundleTracker) { ((RecursiveBundleTracker) bt).close(); } }
public void serviceFound() { LOGGER.debug("Found ProxyManager service, starting to process blueprint bundles"); if (bt instanceof BundleTracker) { ((BundleTracker) bt).open(); } else if (bt instanceof RecursiveBundleTracker) { ((RecursiveBundleTracker) bt).open(); } }
public void stop(BundleContext context) { LOGGER.debug("Stopping blueprint extender..."); stopping = true; ServiceUtil.safeUnregisterService(parserServiceReg); ServiceUtil.safeUnregisterService(blueprintServiceReg); ServiceUtil.safeUnregisterService(quiesceParticipantReg); // Orderly shutdown of containers while (!containers.isEmpty()) { for (Bundle bundle : getBundlesToDestroy()) { destroyContainer(bundle); } } if (bt instanceof BundleTracker) { ((BundleTracker) bt).close(); } else if (bt instanceof RecursiveBundleTracker) { ((RecursiveBundleTracker) bt).close(); } proxyManager.close(); this.eventDispatcher.destroy(); this.handlers.destroy(); executors.shutdown(); LOGGER.debug("Blueprint extender stopped"); }
public void stop(BundleContext context) { LOGGER.debug("Stopping blueprint extender..."); stopping = true; ServiceUtil.safeUnregisterService(parserServiceReg); ServiceUtil.safeUnregisterService(blueprintServiceReg); ServiceUtil.safeUnregisterService(quiesceParticipantReg); // Orderly shutdown of containers while (!containers.isEmpty()) { for (Bundle bundle : getBundlesToDestroy()) { destroyContainer(bundle); } } if (bt instanceof BundleTracker) { ((BundleTracker) bt).close(); } else if (bt instanceof RecursiveBundleTracker) { ((RecursiveBundleTracker) bt).close(); } proxyManager.close(); this.eventDispatcher.destroy(); this.handlers.destroy(); executors.shutdown(); LOGGER.debug("Blueprint extender stopped"); }