Package org.switchyard.deploy.internal

Examples of org.switchyard.deploy.internal.Deployment.start()


        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();
    }

    private SwitchYardModel pullSwitchYardModel() throws Exception {
        return new ModelPuller<SwitchYardModel>().pull(getClass().getResourceAsStream(SWITCHYARD_CONFIG));
    }
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.