Examples of ModuleRuntime


Examples of org.impalaframework.module.spi.ModuleRuntime

        final ModuleStateHolder moduleStateHolder = application.getModuleStateHolder();
        final ServiceRegistry serviceRegistry = application.getServiceRegistry();
       
        if (moduleStateHolder.getModule(moduleName) == null) {

            ModuleRuntime moduleRuntime = getModuleRuntime(currentDefinition);
           
            try {
                RuntimeModule runtimeModule = moduleRuntime.loadRuntimeModule(application, currentDefinition);
                moduleStateHolder.putModule(moduleName, runtimeModule);
            }
            catch (Throwable e) {
               
                try {
View Full Code Here

Examples of org.impalaframework.module.spi.ModuleRuntime

        final ModuleStateHolder moduleStateHolder = application.getModuleStateHolder();
       
        RuntimeModule runtimeModule = moduleStateHolder.removeModule(moduleDefinition);
        if (runtimeModule != null) {
            try {
                ModuleRuntime moduleRuntime = getModuleRuntime(currentDefinition);
                moduleRuntime.closeModule(application, runtimeModule);
            }
            catch (RuntimeException e) {
               
                logger.error("Failed to handle unloading of application module " + moduleDefinition, e);
                if (e instanceof RuntimeException) {
View Full Code Here

Examples of org.impalaframework.module.spi.ModuleRuntime

        return success;
    }

    final ModuleRuntime getModuleRuntime(ModuleDefinition currentDefinition) {
        final String runtimeFramework = currentDefinition.getRuntimeFramework();
        ModuleRuntime moduleRuntime = super.getEntry(runtimeFramework, ModuleRuntime.class);
        return moduleRuntime;
    }
View Full Code Here

Examples of org.impalaframework.module.spi.ModuleRuntime

        final ModuleStateHolder moduleStateHolder = application.getModuleStateHolder();
        final ServiceRegistry serviceRegistry = application.getServiceRegistry();
       
        if (moduleStateHolder.getModule(moduleName) == null) {

            ModuleRuntime moduleRuntime = getModuleRuntime(currentDefinition);
           
            try {
                RuntimeModule runtimeModule = moduleRuntime.loadRuntimeModule(application, currentDefinition);
                moduleStateHolder.putModule(moduleName, runtimeModule);
            }
            catch (Throwable e) {
               
                try {
View Full Code Here

Examples of org.impalaframework.module.spi.ModuleRuntime

        final ModuleStateHolder moduleStateHolder = application.getModuleStateHolder();
       
        RuntimeModule runtimeModule = moduleStateHolder.removeModule(moduleDefinition);
        if (runtimeModule != null) {
            try {
                ModuleRuntime moduleRuntime = getModuleRuntime(currentDefinition);
                moduleRuntime.closeModule(application, runtimeModule);
            }
            catch (RuntimeException e) {
               
                logger.error("Failed to handle unloading of application module " + moduleDefinition, e);
                if (e instanceof RuntimeException) {
View Full Code Here

Examples of org.impalaframework.module.spi.ModuleRuntime

        return success;
    }

    final ModuleRuntime getModuleRuntime(ModuleDefinition currentDefinition) {
        final String runtimeFramework = currentDefinition.getRuntimeFramework();
        ModuleRuntime moduleRuntime = super.getEntry(runtimeFramework, ModuleRuntime.class);
        return moduleRuntime;
    }
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.