Package org.impalaframework.module

Examples of org.impalaframework.module.ModuleStateChange


   
    Collection<ModuleDefinition> childDefinitions = getOldChildDefinitions(definitionToUnload);
    for (ModuleDefinition childDefinition : childDefinitions) {
      unloadDefinitions(childDefinition, transitions);
    }
    ModuleStateChange transition = new ModuleStateChange(Transition.LOADED_TO_UNLOADED, definitionToUnload);
    transitions.add(transition);
    definitionToUnload.setState(ModuleState.UNLOADED);
  }
View Full Code Here


    transitions.add(transition);
    definitionToUnload.setState(ModuleState.UNLOADED);
  }

  protected void loadDefinitions(ModuleDefinition definitionToLoad, List<ModuleStateChange> transitions) {
    ModuleStateChange transition = new ModuleStateChange(Transition.UNLOADED_TO_LOADED, definitionToLoad);
    transitions.add(transition);
    definitionToLoad.setState(ModuleState.LOADED);

    Collection<ModuleDefinition> childDefinitions = getNewChildDefinitions(definitionToLoad);
    for (ModuleDefinition childDefinition : childDefinitions) {
View Full Code Here

  protected void compareRootDefinitions(RootModuleDefinition originalDefinition, RootModuleDefinition newDefinition, List<ModuleStateChange> transitions) {
    //FIXME is this not assuming that new and original will only differ if a context location has been added?
   
    if (!newDefinition.equals(originalDefinition) && newDefinition.containsAll(originalDefinition)) {
      //new definition contains locations not in original definition
      transitions.add(new ModuleStateChange(Transition.CONTEXT_LOCATIONS_ADDED, newDefinition));
     
      checkNewAndOriginal(originalDefinition, newDefinition, transitions);
    }
    else if (!newDefinition.equals(originalDefinition) && originalDefinition.containsAll(newDefinition)) {
      newDefinition.addContextLocations(originalDefinition);
View Full Code Here

  protected void compareRootDefinitions(RootModuleDefinition originalDefinition, RootModuleDefinition newDefinition, List<ModuleStateChange> transitions) {
    //FIXME is this not assuming that new and original will only differ if a context location has been added?
   
    if (!newDefinition.equals(originalDefinition) && newDefinition.containsAll(originalDefinition)) {
      //new definition contains locations not in original definition
      transitions.add(new ModuleStateChange(Transition.CONTEXT_LOCATIONS_ADDED, newDefinition));
     
      checkNewAndOriginal(originalDefinition, newDefinition, transitions);
    }
    else if (!newDefinition.equals(originalDefinition) && originalDefinition.containsAll(newDefinition)) {
      newDefinition.addContextLocations(originalDefinition);
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.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.