Package org.impalaframework.module.source

Examples of org.impalaframework.module.source.InternalModuleDefinitionSource


    }

    private GraphClassLoader newGraphClassLoader() {
        TypeReaderRegistry typeReaderRegistry = TypeReaderRegistryFactory.getTypeReaderRegistry();
        ModuleLocationResolver resolver = new StandaloneModuleLocationResolver();
        InternalModuleDefinitionSource source = new InternalModuleDefinitionSource(typeReaderRegistry, resolver, new String[]{"impala-core", "sample-module4", "sample-module6"});

        RootModuleDefinition rootDefinition = source.getModuleDefinition();
       
        DependencyManager dependencyManager = new DependencyManager(rootDefinition);
        GraphClassLoaderFactory factory = new GraphClassLoaderFactory();
        factory.setModuleLocationResolver(resolver);
       
View Full Code Here


}

class ModuleDefinitionWithParent implements ModuleDefinitionSource {

    public RootModuleDefinition getModuleDefinition() {
        final RootModuleDefinition moduleDefinition = new InternalModuleDefinitionSource(
                TypeReaderRegistryFactory.getTypeReaderRegistry(),
                Impala.getFacade().getModuleManagementFacade().getModuleLocationResolver(),
                new String[] { "impala-core", "sample-module4", "sample-module5" }).getModuleDefinition();
       
        final SimpleModuleDefinition childDefinition = (SimpleModuleDefinition) moduleDefinition.findChildDefinition("sample-module5", true);
View Full Code Here

    public void testClassLoader() throws Exception {
       
        TypeReaderRegistry typeReaderRegistry = TypeReaderRegistryFactory.getTypeReaderRegistry();
        ModuleLocationResolver resolver = new StandaloneModuleLocationResolver();
        InternalModuleDefinitionSource source = new InternalModuleDefinitionSource(typeReaderRegistry, resolver, new String[]{"impala-core", "sample-module4", "sample-module6"});

        RootModuleDefinition rootDefinition = source.getModuleDefinition();
       
        DependencyManager dependencyManager = new DependencyManager(rootDefinition);
        GraphClassLoaderFactory factory = new GraphClassLoaderFactory();
        factory.setModuleLocationResolver(resolver);
       
View Full Code Here

       
        return SpringModuleUtils.getModuleSpringContext(parentModule);
    }

    public RootModuleDefinition getModuleDefinition() {
        return new InternalModuleDefinitionSource(TypeReaderRegistryFactory.getTypeReaderRegistry(),
                Impala.getFacade().getModuleManagementFacade().getModuleLocationResolver(),
                new String[] { "impala-core", "sample-module4", "sample-module5", "sample-module6" }).getModuleDefinition();
    }
View Full Code Here

        this.typeReaderRegistry = TypeReaderRegistryFactory.getTypeReaderRegistry();
    }

    private void setExistingDefinition(String... moduleNames) {
        resolver = new StandaloneModuleLocationResolver();
        InternalModuleDefinitionSource moduleDefinitionSource = new InternalModuleDefinitionSource(typeReaderRegistry, resolver, moduleNames, true);
        rootModuleDefinition = moduleDefinitionSource.getModuleDefinition();
        System.out.println(rootModuleDefinition);
    }
View Full Code Here

        ClassLoader classLoader = applicationContext.getClassLoader();
        assertTrue(classLoader instanceof GraphClassLoader);
    }

    public RootModuleDefinition getModuleDefinition() {
        return new InternalModuleDefinitionSource(TypeReaderRegistryFactory.getTypeReaderRegistry(),
                Impala.getFacade().getModuleManagementFacade().getModuleLocationResolver(),
                new String[] { "impala-core", "sample-module4", "sample-module5", "sample-module6" }).getModuleDefinition();
    }
View Full Code Here

                "impala-core",
                "sample-module1",
                "sample-module2",
                "sample-module3",
                "sample-module4" };
        InternalModuleDefinitionSource moduleDefinitionSource = new InternalModuleDefinitionSource(typeReaderRegistry, resolver, moduleNames , true);

        Impala.init(moduleDefinitionSource);
       
        final Application currentApplication = Impala.getCurrentApplication();
        ModuleMetadataHelper helper = new ModuleMetadataHelper();
View Full Code Here

TOP

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

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.