private void closeBundleManagers() { for (BundleManager bundleManager : bundleManagers()) { if (!bundleManager.isClosed()) { disbandBundleManager(bundleManager); } } }
private void disbandModuleSpecification(ModuleSpecification moduleSpecification) { if (moduleSpecification != null) { BundleManager bundleManager = bundleManager(moduleSpecification); if (bundleManager != null && !bundleManager.isClosed()) { disbandModuleSpecification(bundleManager, moduleSpecification); } } }
private void launch(ModuleSpecification moduleSpecification) { BundleManager bundleManager = bundleManager(moduleSpecification); if (bundleManager == null) { log.info( this + " received " + moduleSpecification + ", no object manager factory for that type yet"); } else if (bundleManager.isClosed()) { log.info( this + " received " + moduleSpecification + ", object manager factory closed: " + bundleManager); } else { launch(bundleManager, moduleSpecification); } }