Package org.impalaframework.module.holder.graph

Examples of org.impalaframework.module.holder.graph.GraphModuleStateHolder


* @author Phil Zoio
*/
public class GraphModuleStateHolderFactory extends SimpleModuleStateHolderFactory {
  
    protected DefaultModuleStateHolder newDefaultModuleStateHolder() {
        return new GraphModuleStateHolder();
    }
View Full Code Here


            RootModuleDefinition originalDefinition, RootModuleDefinition newDefinition) {
       
        GraphAwareModificationExtractor delegate = newDelegate();
        TransitionSet transitions = delegate.getTransitions(application, originalDefinition, newDefinition);
       
        GraphModuleStateHolder moduleStateHolder = ObjectUtils.cast(application.getModuleStateHolder(), GraphModuleStateHolder.class);
       
        //method marked as final means this will be called
        moduleStateHolder.setDependencyManager(delegate.getNewDependencyManager());    
        return transitions;
    }
View Full Code Here

        }
       
        ModuleStateHolder moduleStateHolder = application.getModuleStateHolder();
       
        if (beanVisibilityType.equals(PARENT_FIRST)) {
            GraphModuleStateHolder graphModuleStateHolder = ObjectUtils.cast(moduleStateHolder, GraphModuleStateHolder.class);
            return new ParentFirstBeanGraphInheritanceStrategy().getParentApplicationContext(graphModuleStateHolder, parentApplicationContext, definition);    
        }
       
        if (beanVisibilityType.equals(GRAPH_ORDERED)) {
            GraphModuleStateHolder graphModuleStateHolder = ObjectUtils.cast(moduleStateHolder, GraphModuleStateHolder.class);
            return new GraphOrderedBeanInheritanceStrategy().getParentApplicationContext(graphModuleStateHolder, parentApplicationContext, definition);
        }
   
        throw new ConfigurationException("Invalid value for property " + CoreBootstrapProperties.GRAPH_BEAN_VISIBILITY_TYPE + ". Permissible values are " + Arrays.asList(NONE, PARENT_ONLY, PARENT_FIRST, GRAPH_ORDERED));
    }
View Full Code Here

        if (beanVisibilityType.equals(PARENT_ONLY)) {
            return parentApplicationContext;
        }
       
        if (beanVisibilityType.equals(PARENT_FIRST)) {
            GraphModuleStateHolder graphModuleStateHolder = ObjectUtils.cast(getModuleStateHolder(), GraphModuleStateHolder.class);
            return new ParentFirstBeanGraphInheritanceStrategy().getParentApplicationContext(graphModuleStateHolder, parentApplicationContext, definition);    
        }
       
        if (beanVisibilityType.equals(GRAPH_ORDERED)) {
            GraphModuleStateHolder graphModuleStateHolder = ObjectUtils.cast(getModuleStateHolder(), GraphModuleStateHolder.class);
            return new GraphOrderedBeanInheritanceStrategy().getParentApplicationContext(graphModuleStateHolder, parentApplicationContext, definition);
        }
   
        throw new ConfigurationException("Invalid value for property " + CoreBootstrapProperties.GRAPH_BEAN_VISIBILITY_TYPE + ". Permissible values are " + Arrays.asList(NONE, PARENT_ONLY, PARENT_FIRST, GRAPH_ORDERED));
    }
View Full Code Here

* @author Phil Zoio
*/
public class GraphModuleStateHolderFactory extends SimpleModuleStateHolderFactory {
  
    protected DefaultModuleStateHolder newDefaultModuleStateHolder() {
        return new GraphModuleStateHolder();
    }
View Full Code Here

            RootModuleDefinition originalDefinition, RootModuleDefinition newDefinition) {
       
        GraphAwareModificationExtractor delegate = newDelegate();
        TransitionSet transitions = delegate.getTransitions(application, originalDefinition, newDefinition);
       
        GraphModuleStateHolder moduleStateHolder = ObjectUtils.cast(application.getModuleStateHolder(), GraphModuleStateHolder.class);
       
        //method marked as final means this will be called
        moduleStateHolder.setDependencyManager(delegate.getNewDependencyManager());    
        return transitions;
    }
View Full Code Here

        }
       
        ModuleStateHolder moduleStateHolder = application.getModuleStateHolder();
       
        if (beanVisibilityType.equals(PARENT_FIRST)) {
            GraphModuleStateHolder graphModuleStateHolder = ObjectUtils.cast(moduleStateHolder, GraphModuleStateHolder.class);
            return new ParentFirstBeanGraphInheritanceStrategy().getParentApplicationContext(graphModuleStateHolder, parentApplicationContext, definition);    
        }
       
        if (beanVisibilityType.equals(GRAPH_ORDERED)) {
            GraphModuleStateHolder graphModuleStateHolder = ObjectUtils.cast(moduleStateHolder, GraphModuleStateHolder.class);
            return new GraphOrderedBeanInheritanceStrategy().getParentApplicationContext(graphModuleStateHolder, parentApplicationContext, definition);
        }
   
        throw new ConfigurationException("Invalid value for property " + CoreBootstrapProperties.GRAPH_BEAN_VISIBILITY_TYPE + ". Permissible values are " + Arrays.asList(NONE, PARENT_ONLY, PARENT_FIRST, GRAPH_ORDERED));
    }
View Full Code Here

    if (beanVisibilityType.equals(PARENT_ONLY)) {
      return parentApplicationContext;
    }
   
    if (beanVisibilityType.equals(PARENT_FIRST)) {
      GraphModuleStateHolder graphModuleStateHolder = ObjectUtils.cast(getModuleStateHolder(), GraphModuleStateHolder.class);
      return new ParentFirstBeanGraphInheritanceStrategy().getParentApplicationContext(graphModuleStateHolder, parentApplicationContext, definition);   
    }
   
    if (beanVisibilityType.equals(GRAPH_ORDERED)) {
      GraphModuleStateHolder graphModuleStateHolder = ObjectUtils.cast(getModuleStateHolder(), GraphModuleStateHolder.class);
      return new GraphOrderedBeanInheritanceStrategy().getParentApplicationContext(graphModuleStateHolder, parentApplicationContext, definition);
    }
 
    throw new ConfigurationException("Invalid value for property " + CoreBootstrapProperties.GRAPH_BEAN_VISIBILITY_TYPE + ". Permissible values are " + Arrays.asList(NONE, PARENT_ONLY, PARENT_FIRST, GRAPH_ORDERED));
  }
View Full Code Here

TOP

Related Classes of org.impalaframework.module.holder.graph.GraphModuleStateHolder

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.