Package org.switchyard.deploy.internal

Examples of org.switchyard.deploy.internal.Deployment


    private static final String SWITCHYARD_CONFIG = "switchyard-activator-impl-missing-ref.xml";

    @Test (expected = SwitchYardException.class)
    public void should_throw_if_serviceReference_is_missing() throws Exception {
        final SwitchYardModel model = pullSwitchYardModel();
        final Deployment deployment = new Deployment(model);
        final ServiceDomain domain = new ServiceDomainManager().createDomain(ROOT_DOMAIN, deployment.getConfig());
        final List<Activator> activators = ActivatorLoader.createActivators(domain);
        deployment.init(domain, activators);
        deployment.start();
    }
View Full Code Here


     * Create a new SwitchYard runtime from the specified config.
     * @param config Switchyard configuration.
     * @throws IOException Error reading configuration.
     */
    public SwitchYard(InputStream config) throws IOException {
        _deployment = new Deployment(config);
        _domain = new ServiceDomainManager().createDomain(
                _deployment.getConfig().getQName(), _deployment.getConfig());
        _activatorList = ActivatorLoader.createActivators(_domain);
    }
View Full Code Here

     * @return The deployment instance.
     * @throws Exception creating the deployment.
     */
    private AbstractDeployment createDeployment() throws Exception {
        if (_configModel != null) {
            return new Deployment(_configModel);
        } else {
            return new SimpleTestDeployment();
        }
    }
View Full Code Here

            swConfigStream = null;
        }

        if (swConfigStream != null) {
            try {
                _deployment = new Deployment(swConfigStream);
            } catch (java.io.IOException ioEx) {
                throw CDIDeployMessages.MESSAGES.failedReadingConfig(ioEx);
            } finally {
                try {
                    swConfigStream.close();
View Full Code Here

        Assert.assertEquals(2, _switchYard.getApplication(TEST_APP).getComponentServices().size());
    }

    @Test
    public void testNoComponentService() throws Exception{
        Deployment testDeployment = new MockDeployment(
                new ModelPuller<SwitchYardModel>().pull("switchyard_multiappweb.xml", getClass()),
                QName.valueOf("{urn:switchyard-quickstart-demo:multiapp:0.1.0}web"));
        SwitchYardBuilder builder = new SwitchYardBuilder();
        builder.notify(new ApplicationDeployedEvent(testDeployment));
       
View Full Code Here

TOP

Related Classes of org.switchyard.deploy.internal.Deployment

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.