Package org.impalaframework.module.source

Examples of org.impalaframework.module.source.IncrementalModuleDefinitionSource


        checkDefinition(moduleDefinitionSource);
    }

    public void testGetModuleDefinitionFourFromFour() {
        setExistingDefinition("impala-core", "sample-module2", "sample-module4");
        IncrementalModuleDefinitionSource moduleDefinitionSource = new IncrementalModuleDefinitionSource(resolver, typeReaderRegistry, rootModuleDefinition, "sample-module4");
        checkDefinition(moduleDefinitionSource);
    }
View Full Code Here


        checkDefinition(moduleDefinitionSource);
    }

    public void testGetModuleDefinitionDuffFromFour() {
        setExistingDefinition("impala-core", "sample-module2");
        IncrementalModuleDefinitionSource moduleDefinitionSource = new IncrementalModuleDefinitionSource(resolver, typeReaderRegistry, rootModuleDefinition, "duff-module");
        try {
            moduleDefinitionSource.getModuleDefinition();
        } catch (ConfigurationException e) {
            assertTrue(e.getMessage().contains("Application is using internally defined module structure, but no module.properties file is present on the classpath for module 'duff-module'"));
        }
    }
View Full Code Here

              "and no module.properties can be found in the classpath for this module .");
          return false;
        } else {
          try {
           
            IncrementalModuleDefinitionSource definitionSource = new IncrementalModuleDefinitionSource(
                Impala.getFacade().getModuleManagementFacade().getModuleLocationResolver(),
                Impala.getFacade().getModuleManagementFacade().getTypeReaderRegistry(),
                Impala.getRootModuleDefinition(),
                candidateValue);
            Impala.init(definitionSource);
View Full Code Here

TOP

Related Classes of org.impalaframework.module.source.IncrementalModuleDefinitionSource

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.