Package org.impalaframework.spring.module

Examples of org.impalaframework.spring.module.SpringRuntimeModule


        for (ModuleDefinition moduleDefinition : dependencies) {
           
            final String currentName = moduleDefinition.getName();
            final RuntimeModule runtimeModule = graphModuleStateHolder.getModule(currentName);
            if (runtimeModule instanceof SpringRuntimeModule) {
                SpringRuntimeModule spr = (SpringRuntimeModule) runtimeModule;
                applicationContexts.add(spr.getApplicationContext());
            }
        }
       
        maybeAddRootParent(applicationContexts);
        return applicationContexts;
View Full Code Here


        for (ModuleDefinition moduleDefinition : dependencies) {
           
            final String currentName = moduleDefinition.getName();
            final RuntimeModule runtimeModule = graphModuleStateHolder.getModule(currentName);
            if (runtimeModule instanceof SpringRuntimeModule) {
                SpringRuntimeModule spr = (SpringRuntimeModule) runtimeModule;
                applicationContexts.add(spr.getApplicationContext());
            }
        }
        return applicationContexts;
    }
View Full Code Here

        Impala.init();
        Impala.init(new ModuleDefinitionWithParent());

        executeBean("sample-module4", "bean2");   
        RuntimeModule runtimeModule = Impala.getRuntimeModule("sample-module6");
        SpringRuntimeModule mod = (SpringRuntimeModule) runtimeModule;
        final ParentFactoryBean bean = (ParentFactoryBean) mod.getApplicationContext().getBean("&bean4");
        assertSame(bean.getObject(), Impala.getModuleBean("sample-module4", "bean4", Object.class));
    }
View Full Code Here

           
            final ModuleDefinition moduleDefinition = dependencies.get(i);
            final String currentName = moduleDefinition.getName();
            final RuntimeModule runtimeModule = graphModuleStateHolder.getModule(currentName);
            if (runtimeModule instanceof SpringRuntimeModule) {
                SpringRuntimeModule spr = (SpringRuntimeModule) runtimeModule;
                applicationContexts.add(spr.getApplicationContext());
            }
        }

        int rootModuleDefinitionIndex = getRootModuleDefinitionIndex(dependencies);
       
View Full Code Here

    for (ModuleDefinition moduleDefinition : dependencies) {
     
      final String currentName = moduleDefinition.getName();
      final RuntimeModule runtimeModule = graphModuleStateHolder.getModule(currentName);
      if (runtimeModule instanceof SpringRuntimeModule) {
        SpringRuntimeModule spr = (SpringRuntimeModule) runtimeModule;
        applicationContexts.add(spr.getApplicationContext());
      }
    }
    return applicationContexts;
  }
View Full Code Here

TOP

Related Classes of org.impalaframework.spring.module.SpringRuntimeModule

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.