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 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 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"); }