wiringClone = moduleDatabase.getWiringsClone(); for (Module module : triggers) { if (!State.UNINSTALLED.equals(module.getState())) { ModuleRevision current = module.getCurrentRevision(); if (current != null)
return currentDefault; if (generation.getRevision().getRevisions().getModule().getState().equals(Module.State.UNINSTALLED)) {
if (compatibilityLazyTrigger && State.LAZY_STARTING.equals(module.getState())) { try { module.start(StartOptions.LAZY_TRIGGER);
if (State.LAZY_STARTING.equals(module.getState())) { try { module.start(StartOptions.LAZY_TRIGGER);
if (State.LAZY_STARTING.equals(module.getState())) { try { module.start(StartOptions.LAZY_TRIGGER);
return currentDefault; if (generation.getRevision().getRevisions().getModule().getState().equals(Module.State.UNINSTALLED)) {
return currentDefault; if (generation.getRevision().getRevisions().getModule().getState().equals(Module.State.UNINSTALLED)) {
if (State.LAZY_STARTING.equals(module.getState())) { try { module.start(StartOptions.LAZY_TRIGGER);
if (compatibilityLazyTrigger && State.LAZY_STARTING.equals(module.getState())) { try { module.start(StartOptions.LAZY_TRIGGER);
if (State.LAZY_STARTING.equals(module.getState())) { try { module.start(StartOptions.LAZY_TRIGGER);
private boolean shouldActivateFor(String className, Module module, ModuleRevision revision, ClasspathManager manager) throws ClassNotFoundException { State state = module.getState(); if (!State.LAZY_STARTING.equals(state)) { if (State.STARTING.equals(state) && manager.getClassLoader().getBundleLoader().isTriggerSet()) { // the trigger has been set but we are waiting for the activation to complete return true; } // Don't activate non-starting bundles if (State.RESOLVED.equals(module.getState())) { // handle the resolved case where a previous error occurred if (container.getConfiguration().throwErrorOnFailedStart) { ClassNotFoundException error = errors.get(manager); if (error != null) throw error; } // The module is persistently started and has the lazy activation policy but has not entered the LAZY_STARTING state // There are 2 cases where this can happen // 1) The start-level thread has not gotten to transitioning the bundle to LAZY_STARTING yet // 2) The bundle is marked for eager activation and the start-level thread has not activated it yet // In both cases we need to fire the lazy start trigger to activate the bundle if the start-level is met return module.isPersistentlyStarted() && isLazyStartable(className, revision); } return false; } return isLazyStartable(className, revision); }
private boolean shouldActivateFor(String className, Module module, ModuleRevision revision, ClasspathManager manager) throws ClassNotFoundException { State state = module.getState(); if (!State.LAZY_STARTING.equals(state)) { if (State.STARTING.equals(state) && manager.getClassLoader().getBundleLoader().isTriggerSet()) { // the trigger has been set but we are waiting for the activation to complete return true; } // Don't activate non-starting bundles if (State.RESOLVED.equals(module.getState())) { // handle the resolved case where a previous error occurred if (container.getConfiguration().throwErrorOnFailedStart) { ClassNotFoundException error = errors.get(manager); if (error != null) throw error; } // The module is persistently started and has the lazy activation policy but has not entered the LAZY_STARTING state // There are 2 cases where this can happen // 1) The start-level thread has not gotten to transitioning the bundle to LAZY_STARTING yet // 2) The bundle is marked for eager activation and the start-level thread has not activated it yet // In both cases we need to fire the lazy start trigger to activate the bundle if the start-level is met return module.isPersistentlyStarted() && isLazyStartable(className, revision); } return false; } return isLazyStartable(className, revision); }
private boolean shouldActivateFor(String className, Module module, ModuleRevision revision, ClasspathManager manager) throws ClassNotFoundException { State state = module.getState(); if (!State.LAZY_STARTING.equals(state)) { if (State.STARTING.equals(state) && manager.getClassLoader().getBundleLoader().isTriggerSet()) { // the trigger has been set but we are waiting for the activation to complete return true; } // Don't activate non-starting bundles if (State.RESOLVED.equals(module.getState())) { // handle the resolved case where a previous error occurred if (container.getConfiguration().throwErrorOnFailedStart) { ClassNotFoundException error = errors.get(manager); if (error != null) throw error; } // The module is persistently started and has the lazy activation policy but has not entered the LAZY_STARTING state // There are 2 cases where this can happen // 1) The start-level thread has not gotten to transitioning the bundle to LAZY_STARTING yet // 2) The bundle is marked for eager activation and the start-level thread has not activated it yet // In both cases we need to fire the lazy start trigger to activate the bundle if the start-level is met return module.isPersistentlyStarted() && isLazyStartable(className, revision); } return false; } return isLazyStartable(className, revision); }
private boolean shouldActivateFor(String className, Module module, ModuleRevision revision, ClasspathManager manager) throws ClassNotFoundException { State state = module.getState(); if (!State.LAZY_STARTING.equals(state)) { if (State.STARTING.equals(state) && manager.getClassLoader().getBundleLoader().isTriggerSet()) { // the trigger has been set but we are waiting for the activation to complete return true; } // Don't activate non-starting bundles if (State.RESOLVED.equals(module.getState())) { // handle the resolved case where a previous error occurred if (container.getConfiguration().throwErrorOnFailedStart) { ClassNotFoundException error = errors.get(manager); if (error != null) throw error; } // The module is persistently started and has the lazy activation policy but has not entered the LAZY_STARTING state // There are 2 cases where this can happen // 1) The start-level thread has not gotten to transitioning the bundle to LAZY_STARTING yet // 2) The bundle is marked for eager activation and the start-level thread has not activated it yet // In both cases we need to fire the lazy start trigger to activate the bundle if the start-level is met return module.isPersistentlyStarted() && isLazyStartable(className, revision); } return false; } return isLazyStartable(className, revision); }
private boolean shouldActivateFor(String className, Module module, ModuleRevision revision, ClasspathManager manager) throws ClassNotFoundException { State state = module.getState(); if (!State.LAZY_STARTING.equals(state)) { if (State.STARTING.equals(state) && manager.getClassLoader().getBundleLoader().isTriggerSet()) { // the trigger has been set but we are waiting for the activation to complete return true; } // Don't activate non-starting bundles if (State.RESOLVED.equals(module.getState())) { // handle the resolved case where a previous error occurred if (container.getConfiguration().throwErrorOnFailedStart) { ClassNotFoundException error = errors.get(manager); if (error != null) throw error; } // The module is persistently started and has the lazy activation policy but has not entered the LAZY_STARTING state // There are 2 cases where this can happen // 1) The start-level thread has not gotten to transitioning the bundle to LAZY_STARTING yet // 2) The bundle is marked for eager activation and the start-level thread has not activated it yet // In both cases we need to fire the lazy start trigger to activate the bundle if the start-level is met return module.isPersistentlyStarted() && isLazyStartable(className, revision); } return false; } return isLazyStartable(className, revision); }
private boolean shouldActivateFor(String className, Module module, ModuleRevision revision, ClasspathManager manager) throws ClassNotFoundException { State state = module.getState(); if (!State.LAZY_STARTING.equals(state)) { if (State.STARTING.equals(state) && manager.getClassLoader().getBundleLoader().isTriggerSet()) { // the trigger has been set but we are waiting for the activation to complete return true; } // Don't activate non-starting bundles if (State.RESOLVED.equals(module.getState())) { // handle the resolved case where a previous error occurred if (container.getConfiguration().throwErrorOnFailedStart) { ClassNotFoundException error = errors.get(manager); if (error != null) throw error; } // The module is persistently started and has the lazy activation policy but has not entered the LAZY_STARTING state // There are 2 cases where this can happen // 1) The start-level thread has not gotten to transitioning the bundle to LAZY_STARTING yet // 2) The bundle is marked for eager activation and the start-level thread has not activated it yet // In both cases we need to fire the lazy start trigger to activate the bundle if the start-level is met return module.isPersistentlyStarted() && isLazyStartable(className, revision); } return false; } return isLazyStartable(className, revision); }
private boolean isBootInit() { return systemModule == null || !Module.RESOLVED_SET.contains(systemModule.getState()) || (systemModule.getState().equals(State.STARTING) && inInit); }
private boolean isBootInit() { return systemModule == null || !Module.RESOLVED_SET.contains(systemModule.getState()) || (systemModule.getState().equals(State.STARTING) && inInit); }
private boolean isBootInit() { return systemModule == null || !Module.RESOLVED_SET.contains(systemModule.getState()) || (systemModule.getState().equals(State.STARTING) && inInit); }
private boolean isBootInit() { return systemModule == null || !Module.RESOLVED_SET.contains(systemModule.getState()) || (systemModule.getState().equals(State.STARTING) && inInit); }