Package org.impalaframework.module

Examples of org.impalaframework.module.RuntimeModule


  /*
   * ******************* InternalOperationsFacade methods * **************************
   */

  public RuntimeModule getRuntimeModule(String moduleName) {
    final RuntimeModule runtimeModule = getModuleStateHolder().getModule(moduleName);
   
    if (runtimeModule == null) {
      throw new NoServiceException("No module named '" + moduleName + "' has been loaded");
    }
   
View Full Code Here


    final List<ApplicationContext> applicationContexts = new ArrayList<ApplicationContext>();
   
    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());
      }
    }
View Full Code Here

        final ClassLoaderRegistry classLoaderRegistry = application.getClassLoaderRegistry();
       
        try {
            beforeModuleLoads(definition);
           
            RuntimeModule runtimeModule;
            try {
                runtimeModule = doLoadModule(application, definition);
            }
            catch (RuntimeException e) {
                classLoaderRegistry.removeClassLoader(definition.getName());
                throw e;
            }
           
            Assert.notNull(classLoaderRegistry);
           
            final String moduleName = definition.getName();
            //note that GraphClassLoaderFactory will also populate the ClassLoaderRegistry, hence, this check
            if (!classLoaderRegistry.hasClassLoaderFor(moduleName)) {
                classLoaderRegistry.addClassLoader(moduleName, runtimeModule.getClassLoader());
               
                if (logger.isDebugEnabled()) {
                    logger.debug("Added new class loader " + ObjectUtils.identityToString(runtimeModule.getClassLoader())
                            + " to class loader registry for module: " + moduleName);
                }
            }
           
            return runtimeModule;
View Full Code Here

TOP

Related Classes of org.impalaframework.module.RuntimeModule

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.