org.apache.tuscany.sca.runtime
Interface EndpointReference

All Superinterfaces:
java.lang.Cloneable
All Known Implementing Classes:
EndpointReferenceImpl

public interface EndpointReference
extends java.lang.Cloneable

The endpoint reference for a component service or reference


Method Summary
 java.lang.Object clone()
           
 Binding getBinding()
          Get the binding for the endpoint
 EndpointReference getCallbackEndpoint()
          Get the callback endpoint for this endpoint
 RuntimeComponent getComponent()
          Get the component for the endpoint
 Contract getContract()
          Get the component service or reference for the endpoint
 InterfaceContract getInterfaceContract()
          Get the interface contract for the endpoint
 ReferenceParameters getReferenceParameters()
           
 java.lang.String getURI()
          Get the URI for this endpoint
 void mergeEndpoint(EndpointReference epr)
           
 void setCallbackEndpoint(EndpointReference callbackEndpoint)
          Set the callback endpoint for this endpoint
 void setInterfaceContract(InterfaceContract interfaceContract)
          Update the interface contract for the endpoint
 void setReferenceParameters(ReferenceParameters parameters)
           
 void setURI(java.lang.String uri)
          Set the URI for this endpoint
 

Method Detail

getComponent

RuntimeComponent getComponent()
Get the component for the endpoint

Returns:
The component, null of the EPR is for a non-SCA service

getContract

Contract getContract()
Get the component service or reference for the endpoint

Returns:
The component service or reference, null if the EPR is for a non-SCA service

getBinding

Binding getBinding()
Get the binding for the endpoint

Returns:
The binding

getInterfaceContract

InterfaceContract getInterfaceContract()
Get the interface contract for the endpoint

Returns:
The interface contract

setInterfaceContract

void setInterfaceContract(InterfaceContract interfaceContract)
Update the interface contract for the endpoint

Parameters:
interfaceContract - The updated interface contract

getURI

java.lang.String getURI()
Get the URI for this endpoint

Returns:
The URI of the endpoint

setURI

void setURI(java.lang.String uri)
Set the URI for this endpoint

Parameters:
uri - The new URI of the endpoint

getCallbackEndpoint

EndpointReference getCallbackEndpoint()
Get the callback endpoint for this endpoint

Returns:
The callback endpoint for this endpoint

setCallbackEndpoint

void setCallbackEndpoint(EndpointReference callbackEndpoint)
Set the callback endpoint for this endpoint

Parameters:
callbackEndpoint - The new callback endpoint for this endpoint

clone

java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Throws:
java.lang.CloneNotSupportedException

setReferenceParameters

void setReferenceParameters(ReferenceParameters parameters)

getReferenceParameters

ReferenceParameters getReferenceParameters()

mergeEndpoint

void mergeEndpoint(EndpointReference epr)