Examples of RuntimeComponentReference


Examples of org.apache.tuscany.sca.runtime.RuntimeComponentReference

                        endpoint.getTargetName());
            }
        }
       
        if (wire == null){          
            RuntimeComponentReference runtimeRef = ((RuntimeComponentReference)endpoint.getSourceComponentReference());
           
            // add the resolved binding into the reference
            runtimeRef.getBindings().add(endpoint.getSourceBinding());
           
            // add a binding provider into the reference for the resolved binding
            compositeActivator.addReferenceBindingProviderForEndpoint(endpoint);
           
            // extract the binding provider that has been created
            ReferenceBindingProvider bindingProvider = runtimeRef.getBindingProvider(endpoint.getSourceBinding());
           
            // start the binding provider 
            bindingProvider.start();
           
            // create the wire
            compositeActivator.addReferenceWireForEndpoint(endpoint);
           
            // extract the wire that has been created
            wire = runtimeRef.getRuntimeWire(endpoint.getSourceBinding());
        }           

        return wire.getInvocationChains();
    }
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.