Examples of BaseConfigurationImpl


Examples of org.tubo.configuration.def.baseimpl.BaseConfigurationImpl

    /**
     *
     * @return
     */
    protected Configuration createEmptyConfigurationObject() {
        Configuration config = new BaseConfigurationImpl();
        return config;
    }
View Full Code Here

Examples of org.tubo.configuration.def.baseimpl.BaseConfigurationImpl


    public void testCreateComponentDefSpringContext() throws Exception {
        //
        // create empty config
        BaseConfigurationImpl config = new BaseConfigurationImpl();
        //
        // create test component
        BaseComponentDefImpl componentDef = new BaseComponentDefImpl();
        componentDef.setId("testComponent");
        componentDef.setComponentClassname(org.tubo.resource.springimpl.TestComponent.class.getName());
        componentDef.setType("singleton");
        //
        // add properties to component
        componentDef.setProperty("field01","test_string_field");
        componentDef.setProperty("field02","13");
        //
        // add component to configuration
        config.add(componentDef);
        //
        // create SpringResourceManagerImpl
        SpringResourceManagerImpl rm = SpringResourceManagerImpl.newInstance(config);
        //
        // create spring context
View Full Code Here

Examples of org.tubo.configuration.def.baseimpl.BaseConfigurationImpl

    }

    public void testCreateComponentDefIrrestrictedSpringContext() throws Exception {
        //
        // create empty config
        BaseConfigurationImpl config = new BaseConfigurationImpl();
        //
        // create test component
        BaseComponentDefImpl componentDef = new BaseComponentDefImpl();
        componentDef.setId("testComponent");
        componentDef.setComponentClassname(org.tubo.resource.springimpl.TestComponent.class.getName());
        componentDef.setType("irrestricted");
        //
        // add properties to component
        componentDef.setProperty("field01","test_string_field");
        componentDef.setProperty("field02","13");
        //
        // add component to configuration
        config.add(componentDef);
        //
        // create SpringResourceManagerImpl
        //TODO:SpringResourceManagerImpl rm = new SpringResourceManagerImpl();
        //
        // create spring context
View Full Code Here

Examples of org.tubo.configuration.def.baseimpl.BaseConfigurationImpl

    }

    public void testCreateComponentDefSingletonSpringContext() throws Exception {
        //
        // create empty config
        BaseConfigurationImpl config = new BaseConfigurationImpl();
        //
        // create test component
        BaseComponentDefImpl componentDef = new BaseComponentDefImpl();
        componentDef.setId("testComponent");
        componentDef.setComponentClassname(TestComponent.class.getName());
        componentDef.setType("singleton");
        //
        // add properties to component
        componentDef.setProperty("field01","test_string_field");
        componentDef.setProperty("field02","13");
        //
        // add component to configuration
        config.add(componentDef);
        //
        // create SpringResourceManagerImpl
        //TODO:SpringResourceManagerImpl rm = new SpringResourceManagerImpl();
        //
        // create spring context
View Full Code Here

Examples of org.tubo.configuration.def.baseimpl.BaseConfigurationImpl


    public void testCreateComponentDefPooledSpringContext() throws Exception {
        //
        // create empty config
        BaseConfigurationImpl config = new BaseConfigurationImpl();
        //
        // create pooled test component
        BaseComponentDefImpl componentDef = new BaseComponentDefImpl();
        componentDef.setId("testComponent");
        componentDef.setComponentClassname(TestComponent.class.getName());
        componentDef.setType("pooled");
        componentDef.setMaxCapacity(3);
        //
        // add properties to component
        componentDef.setProperty("field01","test_string_field");
        componentDef.setProperty("field02","13");
        //
        // add component to configuration
        config.add(componentDef);
        //
        // create SpringResourceManagerImpl
        //TODO:SpringResourceManagerImpl rm = new SpringResourceManagerImpl();
        //
        // create spring context
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.