Package org.impalaframework.module.definition

Examples of org.impalaframework.module.definition.SimpleModuleDefinition


        ModuleDefinitionSource definitionSource = new SimpleModuleDefinitionSource(rootProjectName, new String[] { "parentTestContext.xml" }, new String[] { plugin1, plugin2 });

        public Test2() {

            ModuleDefinition p2 = definitionSource.getModuleDefinition().getChildModuleDefinition(plugin2);
            new SimpleModuleDefinition(p2, plugin3);
        }
View Full Code Here


        classes = new Class[]{String.class};
        exporter = new ServiceRegistryExporter();
        registry = new DelegatingServiceRegistry();
        beanFactory = createMock(DefaultListableBeanFactory.class);
        exporter.setBeanFactory(beanFactory);
        exporter.setModuleDefinition(new SimpleModuleDefinition("module1"));
        exporter.setServiceRegistry(registry);
        exportTypes = new Class<?>[]{String.class, Object.class};
        exporter.setExportTypes(exportTypes);
        exporter.setBeanClassLoader(ClassUtils.getDefaultClassLoader());
    }
View Full Code Here

    }
   
    public void testPostProcessAfterInitialization() {
        expectFactoryBean();
        Object object = new Object();
        p.setModuleDefinition(new SimpleModuleDefinition("pluginName"));
       
        expect(beanFactory.containsBean("&mybean")).andReturn(false);
        expect(beanFactory.containsBeanDefinition("mybean")).andReturn(false);
        expect(endPoint.getExportName()).andReturn("anotherExportName");
       
View Full Code Here

   
    public void testRegisterTwice() {
        expectFactoryBean();
        Object object = new Object();
        p.setModuleDefinition(new SimpleModuleDefinition("pluginName"));

        expectMyBean();
       
        replay(beanFactory);
        replay(parentBeanFactory);
View Full Code Here

       
        assertNotNull(serviceRegistry.getService("mybean", classes, false));
    }
    public void testNotSingleton() {
        Object object = new Object();
        p.setModuleDefinition(new SimpleModuleDefinition("pluginName"));

        expect(beanFactory.containsBean("&mybean")).andReturn(false);
        expect(beanFactory.containsBeanDefinition("mybean")).andReturn(true);
        GenericBeanDefinition definition = new GenericBeanDefinition();
        definition.setScope("prototype");
View Full Code Here

    }
   
    public void testPostProcessWithOtherExportName() {
        expectFactoryBean();
        Object object = new Object();
        p.setModuleDefinition(new SimpleModuleDefinition("pluginName"));

        expectMyBean();
       
        replay(beanFactory);
        replay(parentBeanFactory);
View Full Code Here

        expect(factoryBean.isSingleton()).andReturn(true);
        expect(beanFactory.containsBeanDefinition("mybean")).andReturn(false);

        //verify that if the object is a factory bean
        //then the registered object is the factoryBean.getObject()
        p.setModuleDefinition(new SimpleModuleDefinition("pluginName"));

        expect(endPoint.getExportName()).andReturn("mybean");
       
        replay(beanFactory);
        replay(parentBeanFactory);
View Full Code Here

       
        expectIsFactoryBean();
        expect(factoryBean.isSingleton()).andReturn(false);

        //verify that if the object is a factory bean
        p.setModuleDefinition(new SimpleModuleDefinition("pluginName"));
       
        replay(beanFactory);
        replay(parentBeanFactory);
        replay(endPoint);
        replay(factoryBean);
View Full Code Here

    List<String> contextLocations = TypeReaderUtils.readContextLocations(definitionElement);
    properties.setProperty(ModuleElementNames.CONTEXT_LOCATIONS_ELEMENT, StringUtils.collectionToCommaDelimitedString(contextLocations));
  }

  protected ModuleDefinition newDefinition(ModuleDefinition parent, String moduleName, String[] locationsArray) {
    return new SimpleModuleDefinition(parent, moduleName, locationsArray);
  }
View Full Code Here

        transitionManager.processTransitions(moduleStateHolder, application, transitionSet);
    }
   
    private TransitionResultSet newTransitionResultSet() {
        TransitionResultSet result = new TransitionResultSet();
        ModuleStateChange stateChange = new ModuleStateChange(Transition.LOADED_TO_UNLOADED, new SimpleModuleDefinition("myModule"));
        result.addResult(new TransitionResult(stateChange));
        return result;
    }
View Full Code Here

TOP

Related Classes of org.impalaframework.module.definition.SimpleModuleDefinition

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.