Package org.objectweb.celtix.configuration

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


        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

        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

       
        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

        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

        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

    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

                                                                                portName);
        Configuration busCfg = bus.getConfiguration();
        assert null != busCfg;
        String id = EndpointReferenceUtils.getServiceName(ref).toString();
        ConfigurationBuilder cb = ConfigurationBuilderFactory.getBuilder(null);
        cb.buildConfiguration(JMSConstants.ENDPOINT_CONFIGURATION_URI, id, busCfg);
        cb.buildConfiguration(JMSConstants.PORT_CONFIGURATION_URI,
                              id + "/" + EndpointReferenceUtils.getPortName(ref).toString(),
                              busCfg);
    }
}
View Full Code Here

        Configuration busCfg = bus.getConfiguration();
        assert null != busCfg;
        String id = EndpointReferenceUtils.getServiceName(ref).toString();
        ConfigurationBuilder cb = ConfigurationBuilderFactory.getBuilder(null);
        cb.buildConfiguration(JMSConstants.ENDPOINT_CONFIGURATION_URI, id, busCfg);
        cb.buildConfiguration(JMSConstants.PORT_CONFIGURATION_URI,
                              id + "/" + EndpointReferenceUtils.getPortName(ref).toString(),
                              busCfg);
    }
}
View Full Code Here

            model = builder.build(is);
        } catch (IOException ex) {
            // ignore
        }
        cb.addModel(model);
        return cb.buildConfiguration(model.getNamespaceURI(), id);
    }
}
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.