Package org.apache.tuscany.sca.core.assembly.impl

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


    private EndpointReference from;
    private EndpointReference to;

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

            // 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

        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

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

            // 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

        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

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

    private EndpointReference from;
    private EndpointReference to;

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

        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

TOP

Related Classes of org.apache.tuscany.sca.core.assembly.impl.EndpointReferenceImpl

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.