Package org.apache.tuscany.sca.context

Examples of org.apache.tuscany.sca.context.CompositeContext


        endpointReference.getInvocationChains();
    }

    public void stop(RuntimeEndpointReference epr) {
        if (epr.isStarted()) {
            CompositeContext compositeContext = epr.getCompositeContext();
            if (compositeContext == null) {
                throw new IllegalStateException("The endpoint reference is not bound");
            }
            compositeContext.getEndpointRegistry().removeEndpointReference(epr);
            ReferenceBindingProvider bindingProvider = epr.getBindingProvider();
            if (bindingProvider != null) {
                try {
                    bindingProvider.stop();
                } catch (Throwable ex){
View Full Code Here


            //
            // I've had a go at making the code do that below. However there is some question
            // about what the appliesTo field means and it's hard to get here from the
            // binder so until we sort out the appliesTo question this code isn't used
                      
            CompositeContext compositeContext = ((RuntimeComponent)epr.getComponent()).getComponentContext().getCompositeContext();
            Composite domainComposite = compositeContext.getDomainComposite();
            Definitions systemDefinitions = compositeContext.getSystemDefinitions();
           
            if (systemDefinitions == null ||
                (systemDefinitions.getPolicySets().isEmpty() &&
                 systemDefinitions.getExternalAttachments().isEmpty()) ) {
                return;
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.context.CompositeContext

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.