Examples of buildConfiguration()


Examples of org.objectweb.celtix.configuration.ConfigurationBuilder.buildConfiguration()

    Configuration build(String[] args, Map<String, Object> properties) {
        String id = getBusId(args, properties);
        ConfigurationBuilder builder = ConfigurationBuilderFactory.getBuilder(null);
        Configuration c = builder.getConfiguration(BUS_CONFIGURATION_URI, id);
        if (null == c) {
            c = builder.buildConfiguration(BUS_CONFIGURATION_URI, id);
        }
        return c; 
    }

    private static String getBusId(String[] args, Map<String, Object> properties) {
View Full Code Here

Examples of org.objectweb.celtix.configuration.ConfigurationBuilder.buildConfiguration()

                .getServiceName(ref).toString(), busCfg);
        }

        Configuration cfg = builder.getConfiguration(RM_CONFIGURATION_URI, RM_CONFIGURATION_ID, parent);
        if (null == cfg) {
            cfg = builder.buildConfiguration(RM_CONFIGURATION_URI, RM_CONFIGURATION_ID, parent);
           
        }
        boolean policyProviderRegistered = false;
        for (ConfigurationProvider p : cfg.getProviders()) {
            if (p instanceof RMPolicyProvider) {
View Full Code Here

Examples of org.objectweb.celtix.configuration.ConfigurationBuilder.buildConfiguration()

                .getServiceName(ref).toString(), busCfg);
        }

        configuration = builder.getConfiguration(WSA_CONFIGURATION_URI, WSA_CONFIGURATION_ID, parent);
        if (null == configuration) {
            configuration = builder.buildConfiguration(WSA_CONFIGURATION_URI, WSA_CONFIGURATION_ID, parent);
           
        }
    }

View Full Code Here

Examples of org.objectweb.celtix.configuration.ConfigurationBuilder.buildConfiguration()

       
        Configuration itCfg = cb.getConfiguration(INSTRUMENTATION_CONFIGURATION_URI,
                                                  INSTRUMENTATION_CONFIGURATION_ID,
                                                configuration);
        if (null == itCfg) {
            itCfg = cb.buildConfiguration(INSTRUMENTATION_CONFIGURATION_URI,
                                          INSTRUMENTATION_CONFIGURATION_ID,
                                        configuration);          
        }
        return itCfg;
    }
View Full Code Here

Examples of org.objectweb.celtix.configuration.ConfigurationBuilder.buildConfiguration()

        cb.addModel(ROUTER_CONFIG_RESOURCE);
        cfg = cb.getConfiguration(ROUTING_CONFIGURATION_URI,
                                  ROUTING_CONFIGURATION_ID,
                                  busCfg);
        if (null == cfg) {
            cfg = cb.buildConfiguration(ROUTING_CONFIGURATION_URI,
                                        ROUTING_CONFIGURATION_ID,
                                        busCfg);
        }
        return cfg;
    }
View Full Code Here

Examples of org.objectweb.celtix.configuration.ConfigurationBuilder.buildConfiguration()

        model = new ConfigurationMetadataImpl();
        model.setNamespaceURI(HTTP_LISTENER_CONFIGURATION_URI);
        model.setParentNamespaceURI(BUS_CONFIGURATION_URI);
        builder.addModel(model);
       
        Configuration parent = builder.buildConfiguration(BUS_CONFIGURATION_URI, id, null);
        assertNotNull(parent);

        try {
            builder.buildConfiguration(HTTP_LISTENER_CONFIGURATION_URI,
                                       HTTP_LISTENER_CONFIGURATION_ID, null);
View Full Code Here

Examples of org.objectweb.celtix.configuration.ConfigurationBuilder.buildConfiguration()

       
        Configuration parent = builder.buildConfiguration(BUS_CONFIGURATION_URI, id, null);
        assertNotNull(parent);

        try {
            builder.buildConfiguration(HTTP_LISTENER_CONFIGURATION_URI,
                                       HTTP_LISTENER_CONFIGURATION_ID, null);
            fail("Did not throw expected exception");
        } catch (ConfigurationException e) {
            String expectedErrorMsg = "Configuration " + HTTP_LISTENER_CONFIGURATION_URI
                + " is not a valid top configuration.";
View Full Code Here

Examples of org.objectweb.celtix.configuration.ConfigurationBuilder.buildConfiguration()

        model.setNamespaceURI(BUS_CONFIGURATION_URI);
        builder.addModel(model);
        model = new ConfigurationMetadataImpl();
        model.setNamespaceURI(HTTP_LISTENER_CONFIGURATION_URI);
        builder.addModel(model);
        Configuration parent = builder.buildConfiguration(BUS_CONFIGURATION_URI, id);
        assertNotNull(parent);
        Configuration child = builder.buildConfiguration(HTTP_LISTENER_CONFIGURATION_URI,
                                                         HTTP_LISTENER_CONFIGURATION_ID);
        assertNotNull(child);
    }
View Full Code Here

Examples of org.objectweb.celtix.configuration.ConfigurationBuilder.buildConfiguration()

        model = new ConfigurationMetadataImpl();
        model.setNamespaceURI(HTTP_LISTENER_CONFIGURATION_URI);
        builder.addModel(model);
        Configuration parent = builder.buildConfiguration(BUS_CONFIGURATION_URI, id);
        assertNotNull(parent);
        Configuration child = builder.buildConfiguration(HTTP_LISTENER_CONFIGURATION_URI,
                                                         HTTP_LISTENER_CONFIGURATION_ID);
        assertNotNull(child);
    }
}
View Full Code Here

Examples of org.objectweb.celtix.configuration.ConfigurationBuilder.buildConfiguration()

    protected void run() {

        ControlImpl.setConfigFileProperty("oneway-terminate-on-shutdown");
        ConfigurationBuilder builder = ConfigurationBuilderFactory.getBuilder();
        builder.buildConfiguration(BusConfigurationBuilder.BUS_CONFIGURATION_URI, "celtix");
       
        GreeterImpl implementor = new GreeterImpl();
        String address = "http://localhost:9000/SoapContext/GreeterPort";
        Endpoint.publish(address, implementor);
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.