Package org.impalaframework.module.spi

Examples of org.impalaframework.module.spi.ModuleStateChange


        DependencyManager dependencyManager = new DependencyManager(copy);
        Collection<ModuleDefinition> sortedModules = dependencyManager.getAllModules();
       
        for (ModuleDefinition moduleDefinition : sortedModules) {
            if (ModuleState.ERROR.equals(moduleDefinition.getState()) || ModuleState.DEPENDENCY_FAILED.equals(moduleDefinition.getState())) {
                transitions.add(new ModuleStateChange(Transition.UNLOADED_TO_LOADED, moduleDefinition));
                moduleDefinition.setState(ModuleState.LOADING);
            }
        }
       
        copy.freeze();
View Full Code Here


   
    //newTransitions
    List<ModuleStateChange> newTransitions = new ArrayList<ModuleStateChange>();
   
    for (ModuleDefinition moduleDefinition : unloadable) {
      newTransitions.add(new ModuleStateChange(Transition.LOADED_TO_UNLOADED, moduleDefinition));
    }
   
    //build loadable
    for (ModuleDefinition moduleDefinition : loadable) {
      newTransitions.add(new ModuleStateChange(Transition.UNLOADED_TO_LOADED, moduleDefinition));
    }
   
    //now add other transitions
    for (ModuleStateChange moduleStateChange : transitions) {
      if (!newTransitions.contains(moduleStateChange)) {
View Full Code Here

TOP

Related Classes of org.impalaframework.module.spi.ModuleStateChange

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.