Example #1
0
 private void closeBundleManagers() {
   for (BundleManager bundleManager : bundleManagers()) {
     if (!bundleManager.isClosed()) {
       disbandBundleManager(bundleManager);
     }
   }
 }
Example #2
0
 private void disbandModuleSpecification(ModuleSpecification moduleSpecification) {
   if (moduleSpecification != null) {
     BundleManager bundleManager = bundleManager(moduleSpecification);
     if (bundleManager != null && !bundleManager.isClosed()) {
       disbandModuleSpecification(bundleManager, moduleSpecification);
     }
   }
 }
Example #3
0
 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);
   }
 }