Package org.impalaframework.resolver

Examples of org.impalaframework.resolver.StandaloneModuleLocationResolver


        return urlClassLoader;
    }

    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);
View Full Code Here


    }

    private void doSucceedingTest(String resourceName) {
        expect(servletContext.getMajorVersion()).andReturn(0);
        expect(servletContext.getInitParameter(LocationConstants.BOOTSTRAP_MODULES_RESOURCE_PARAM)).andReturn(resourceName);
        expect(factory.getModuleLocationResolver()).andReturn(new StandaloneModuleLocationResolver());
        expect(factory.getTypeReaderRegistry()).andReturn(TypeReaderRegistryFactory.getTypeReaderRegistry());

        replay(servletContext);
        replay(factory);
View Full Code Here

    private TypeReaderRegistry typeReaderRegistry;

    protected void setUp() throws Exception {
        super.setUp();
        this.typeReaderRegistry = TypeReaderRegistryFactory.getTypeReaderRegistry();
        StandaloneModuleLocationResolver resolver = new StandaloneModuleLocationResolver();
        String[] moduleNames = new String[] { "impala-core", "sample-module4", "sample-module5"};
        InternalModuleDefinitionSource moduleDefinitionSource = new InternalModuleDefinitionSource(
                typeReaderRegistry, resolver, moduleNames, true);
        moduleDefinitionSource.inspectModules();
        children = moduleDefinitionSource.getChildren();
View Full Code Here

    @Override
    protected void setUp() throws Exception {
        super.setUp();
        this.typeReaderRegistry = TypeReaderRegistryFactory.getTypeReaderRegistry();
        this.resolver = new StandaloneModuleLocationResolver();
    }
View Full Code Here

    private InternalXmlModuleDefinitionSource moduleDefinitionSource;

    @Override
    protected void setUp() throws Exception {
        super.setUp();
        moduleDefinitionSource = new InternalXmlModuleDefinitionSource(new StandaloneModuleLocationResolver());
    }
View Full Code Here

    public void setUp() {  
        ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext("META-INF/impala-bootstrap.xml");
        Object bean = appContext.getBean("moduleManagementFacade");
        facade = ObjectUtils.cast(bean, ModuleManagementFacade.class);
       
        StandaloneModuleLocationResolver resolver = new StandaloneModuleLocationResolver();

        ModuleLoaderRegistry registry = facade.getModuleLoaderRegistry();
        ApplicationModuleLoader rootModuleLoader = new ApplicationModuleLoader();

        CustomClassLoaderFactory classLoaderFactory = new CustomClassLoaderFactory();
View Full Code Here

    private ModuleDefinitionSource source;

    private ModuleDefinition p2;

    public void setUp() {
        StandaloneModuleLocationResolver locationResolver = new StandaloneModuleLocationResolver();
        moduleLoader = new ApplicationModuleLoader();
        CustomClassLoaderFactory classLoaderFactory = new CustomClassLoaderFactory();
        classLoaderFactory.setModuleLocationResolver(locationResolver);

        source = new SimpleModuleDefinitionSource(rootProjectName, new String[] { "parentTestContext.xml" }, new String[] { plugin1, plugin2 });
View Full Code Here

    @Override
    protected void setUp() throws Exception {
        super.setUp();
        this.typeReaderRegistry = TypeReaderRegistryFactory.getTypeReaderRegistry();
        this.resolver = new StandaloneModuleLocationResolver();
        this.moduleDefinitionSource = new InternalModuleDefinitionSource(typeReaderRegistry, resolver, moduleNames, 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);
View Full Code Here

    public void testProcessTransitions() {
       
        DefaultModuleStateHolder moduleStateHolder = new DefaultModuleStateHolder();
        DefaultTransitionManager transitionManager = new DefaultTransitionManager();
        ModuleLoaderRegistry registry = new ModuleLoaderRegistry();
        ModuleLocationResolver resolver = new StandaloneModuleLocationResolver();

        CustomClassLoaderFactory classLoaderFactory = new CustomClassLoaderFactory();
        classLoaderFactory.setModuleLocationResolver(resolver);
       
        ApplicationModuleLoader rootModuleLoader = new ApplicationModuleLoader();
View Full Code Here

TOP

Related Classes of org.impalaframework.resolver.StandaloneModuleLocationResolver

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.