Examples of EndpointReferenceImpl


Examples of org.apache.tuscany.sca.core.assembly.EndpointReferenceImpl

           
        }
       
        binding.setURI(endpointURL);

        serviceEPR = new EndpointReferenceImpl(binding.getURI());
           
       
/*       
        if ( serviceEPR == null && nodeFactory.getNode() != null ){
            // try to resolve the service endpoint with the registry
View Full Code Here

Examples of org.apache.tuscany.sca.core.assembly.impl.EndpointReferenceImpl

        final Component targetComponent = super.resolveComponentURI(uri);
        final ComponentService targetService = super.resolveServiceURI(uri, targetComponent);
        final InterfaceContract targetServiceIfaceContract = targetService.getInterfaceContract();

        // Re-create the resolved Endpoint
        this.resolvedEndpoint = new EndpointReferenceImpl(
                (RuntimeComponent) targetComponent, targetService, null,
                targetServiceIfaceContract);

        // Copy the Java Interface from the Service
        final JavaInterface ji = (JavaInterface) targetServiceIfaceContract.getInterface();
View Full Code Here

Examples of org.apache.tuscany.sca.core.assembly.impl.EndpointReferenceImpl

    private EndpointReference from;
    private EndpointReference to;

    public MessageImpl() {
        this.from = new EndpointReferenceImpl("/");
        this.to = new EndpointReferenceImpl("/");
    }
View Full Code Here

Examples of org.apache.tuscany.sca.core.assembly.impl.EndpointReferenceImpl

            // Use the interface contract of the reference on the component type
            Reference componentTypeRef = reference.getReference();
            InterfaceContract sourceContract =
                componentTypeRef == null ? reference.getInterfaceContract() : componentTypeRef.getInterfaceContract();
            sourceContract = sourceContract.makeUnidirectional(false);
            EndpointReference epr = new EndpointReferenceImpl(component, reference, binding, sourceContract);
            ReferenceParameters parameters = getReferenceParameters();
            epr.setReferenceParameters(parameters);
            return epr;
        } catch (Exception e) {
            throw new ServiceRuntimeException(e);
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.core.assembly.impl.EndpointReferenceImpl

        return new RuntimeComponentServiceImpl();
    }
   
    // FIXME: [rfeng] We need to find a more consistent story to deal with EPR, EP and CallableReference
    public EndpointReference createEndpointReference(String uri) {
        return new EndpointReferenceImpl(uri);
    }
View Full Code Here

Examples of org.apache.tuscany.sca.core.assembly.impl.EndpointReferenceImpl

    public EndpointReference createEndpointReference(RuntimeComponent component,
                                                     Contract contract,
                                                     Binding binding,
                                                     InterfaceContract interfaceContract) {
        return new EndpointReferenceImpl(component, contract, binding, interfaceContract);
    }
View Full Code Here

Examples of org.apache.tuscany.sca.core.assembly.impl.EndpointReferenceImpl

            // Use the interface contract of the reference on the component type
            Reference componentTypeRef = reference.getReference();
            InterfaceContract sourceContract =
                componentTypeRef == null ? reference.getInterfaceContract() : componentTypeRef.getInterfaceContract();
            sourceContract = sourceContract.makeUnidirectional(false);
            EndpointReference epr = new EndpointReferenceImpl(component, reference, binding, sourceContract);
            ReferenceParameters parameters = getReferenceParameters();
            epr.setReferenceParameters(parameters);
            return epr;
        } catch (Exception e) {
            throw new ServiceRuntimeException(e);
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.core.assembly.impl.EndpointReferenceImpl

        return new RuntimeComponentServiceImpl();
    }
   
    // FIXME: [rfeng] We need to find a more consistent story to deal with EPR, EP and CallableReference
    public EndpointReference createEndpointReference(String uri) {
        return new EndpointReferenceImpl(uri);
    }
View Full Code Here

Examples of org.apache.tuscany.sca.core.assembly.impl.EndpointReferenceImpl

    public EndpointReference createEndpointReference(RuntimeComponent component,
                                                     Contract contract,
                                                     Binding binding,
                                                     InterfaceContract interfaceContract) {
        return new EndpointReferenceImpl(component, contract, binding, interfaceContract);
    }
View Full Code Here

Examples of org.apache.tuscany.sca.core.assembly.impl.EndpointReferenceImpl

    private EndpointReference from;
    private EndpointReference to;

    public MessageImpl() {
        this.from = new EndpointReferenceImpl("/");
        this.to = new EndpointReferenceImpl("/");
    }
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.