Examples of findChildDefinition()


Examples of org.impalaframework.module.RootModuleDefinition.findChildDefinition()

      if (parent == null) {
        newParent = newRootDefinition;
      }
      else {
        String parentName = parent.getName();
        newParent = newRootDefinition.findChildDefinition(parentName, true);

        if (newParent == null) {
          throw new InvalidStateException("Unable to find parent module '" + parentName + "' in " + newRootDefinition);
        }
      }
View Full Code Here

Examples of org.impalaframework.module.RootModuleDefinition.findChildDefinition()

    if (oldRootDefinition == null) {
      return false;
    }
   
    RootModuleDefinition newRootDefinition = moduleStateHolder.cloneRootModuleDefinition();
    ModuleDefinition definitionToRemove = newRootDefinition.findChildDefinition(moduleToRemove, true);

    if (definitionToRemove != null) {
      if (definitionToRemove instanceof RootModuleDefinition) {
        //we're removing the rootModuleDefinition
        TransitionSet transitions = calculator.getTransitions(oldRootDefinition, null);
View Full Code Here

Examples of org.impalaframework.module.RootModuleDefinition.findChildDefinition()

        ModificationExtractorRegistry modificationExtractor = getModificationExtractorRegistry();
        ModificationExtractor calculator = modificationExtractor
                .getModificationExtractor(ModificationExtractorType.STRICT);

        ModuleDefinition childDefinition = newRootDefinition.findChildDefinition(moduleToReload, true);

        if (childDefinition != null) {
            childDefinition.setState(ModuleState.STALE);

            TransitionSet transitions = calculator.getTransitions(oldRootDefinition, newRootDefinition);
View Full Code Here

Examples of org.impalaframework.module.RootModuleDefinition.findChildDefinition()

                        + this.getClass().getName());
       
        ModuleStateHolder moduleStateHolder = getModuleStateHolder();
        RootModuleDefinition newDefinition = moduleStateHolder.cloneRootModuleDefinition();

        ModuleDefinition found = newDefinition.findChildDefinition(moduleToReload, false);

        if (found != null) {

            String foundModuleName = found.getName();
           
View Full Code Here

Examples of org.impalaframework.module.RootModuleDefinition.findChildDefinition()

            if (parent == null) {
                newParent = newRootDefinition;
            }
            else {
                String parentName = parent.getName();
                newParent = newRootDefinition.findChildDefinition(parentName, true);

                if (newParent == null) {
                    throw new InvalidStateException("Unable to find parent module '" + parentName + "' in " + newRootDefinition);
                }
            }
View Full Code Here

Examples of org.impalaframework.module.RootModuleDefinition.findChildDefinition()

        if (oldRootDefinition == null) {
            return false;
        }
       
        RootModuleDefinition newRootDefinition = moduleStateHolder.cloneRootModuleDefinition();
        ModuleDefinition definitionToRemove = newRootDefinition.findChildDefinition(moduleToRemove, true);

        if (definitionToRemove != null) {
            if (definitionToRemove instanceof RootModuleDefinition) {
                //we're removing the rootModuleDefinition
                TransitionSet transitions = calculator.getTransitions(oldRootDefinition, null);
View Full Code Here

Examples of org.impalaframework.module.RootModuleDefinition.findChildDefinition()

    /* **************************** getters ************************** */

    public boolean hasModule(String moduleName) {
        RootModuleDefinition rootModuleDefinition = getModuleStateHolder().getRootModuleDefinition();
        return (rootModuleDefinition.findChildDefinition(moduleName, true) != null);
    }

    public String findLike(String moduleName) {
        RootModuleDefinition rootModuleDefinition = getModuleStateHolder().getRootModuleDefinition();
        ModuleDefinition definition = rootModuleDefinition.findChildDefinition(moduleName, false);
View Full Code Here

Examples of org.impalaframework.module.RootModuleDefinition.findChildDefinition()

        return (rootModuleDefinition.findChildDefinition(moduleName, true) != null);
    }

    public String findLike(String moduleName) {
        RootModuleDefinition rootModuleDefinition = getModuleStateHolder().getRootModuleDefinition();
        ModuleDefinition definition = rootModuleDefinition.findChildDefinition(moduleName, false);
        if (definition != null) {
            return definition.getName();
        }
        return null;
    }
View Full Code Here

Examples of org.impalaframework.module.RootModuleDefinition.findChildDefinition()

        RootModuleDefinition actual = builder.getModuleDefinition();
        assertEquals(3, actual.getChildModuleDefinitions().size());

        assertEquals(root, actual);
       
        assertEquals(definition1, actual.findChildDefinition(module1, true));
        assertEquals(definition2, actual.findChildDefinition(module2, true));
        assertEquals(definition3, actual.findChildDefinition(module3, true));
        assertEquals(definition4, actual.findChildDefinition(module4, true));
    }
   
View Full Code Here

Examples of org.impalaframework.module.RootModuleDefinition.findChildDefinition()

        assertEquals(3, actual.getChildModuleDefinitions().size());

        assertEquals(root, actual);
       
        assertEquals(definition1, actual.findChildDefinition(module1, true));
        assertEquals(definition2, actual.findChildDefinition(module2, true));
        assertEquals(definition3, actual.findChildDefinition(module3, true));
        assertEquals(definition4, actual.findChildDefinition(module4, true));
    }
   
    public void testGetGraphDefinition() throws Exception {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.