Package org.apache.tuscany.sca.core.runtime

Examples of org.apache.tuscany.sca.core.runtime.CompositeActivator


         * @deprecated
         * @param composite
         * @throws ActivationException
         */
        public void stopComposite(Composite composite) throws ActivationException {
            CompositeActivator compositeActivator = runtime.getCompositeActivator();
            compositeActivator.stop(composite);
        }
View Full Code Here


         * Start a component
         * @param component
         * @throws ActivationException
         */
        public void startComponent(Component component) throws ActivationException {
            CompositeActivator compositeActivator = runtime.getCompositeActivator();
            compositeActivator.start(component);
        }
View Full Code Here

         * Stop a component
         * @param component
         * @throws ActivationException
         */
        public void stopComponent(Component component) throws ActivationException {
            CompositeActivator compositeActivator = runtime.getCompositeActivator();
            compositeActivator.stop(component);
        }       
View Full Code Here

        /**
         * Activate SCA Domain
         * @throws ActivationException
         */
        public void activateDomain() throws ActivationException {
            CompositeActivator compositeActivator = runtime.getCompositeActivator();
            compositeActivator.activate(domainComposite);
            for (Component component : domainComposite.getComponents()) {
                components.put(component.getName(), component);
            }

        }
View Full Code Here

           
        }


        // Activate and start the SCA domain composite
        CompositeActivator compositeActivator = runtime.getCompositeActivator();
        try {
            compositeActivator.activate(domainComposite);
            compositeActivator.start(domainComposite);
        } catch (ActivationException e) {
            throw new ServiceRuntimeException(e);
        }

        // Index the top level components
View Full Code Here

        } catch (ContributionException e) {
            throw new ServiceRuntimeException(e);
        }
       
        // Stop the SCA domain composite
        CompositeActivator compositeActivator = runtime.getCompositeActivator();
        try {
            compositeActivator.stop(domainComposite);
        } catch (ActivationException e) {
            throw new ServiceRuntimeException(e);

        }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.core.runtime.CompositeActivator

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.