org.apache.tuscany.sca.core.assembly
Class EndpointReferenceImpl

java.lang.Object
  extended by org.apache.tuscany.sca.core.assembly.EndpointReferenceImpl
All Implemented Interfaces:
java.lang.Cloneable, EndpointReference

public class EndpointReferenceImpl
extends java.lang.Object
implements EndpointReference


Constructor Summary
EndpointReferenceImpl(RuntimeComponent component, Contract contract, Binding binding, InterfaceContract interfaceContract)
           
EndpointReferenceImpl(java.lang.String uri)
           
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object obj)
           
 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
 int hashCode()
           
 void mergeEndpoint(EndpointReference epr)
           
 void setBinding(Binding binding)
           
 void setCallbackEndpoint(EndpointReference callbackEndpoint)
          Set the callback endpoint for this endpoint
 void setComponent(RuntimeComponent component)
           
 void setContract(Contract contract)
           
 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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndpointReferenceImpl

public EndpointReferenceImpl(RuntimeComponent component,
                             Contract contract,
                             Binding binding,
                             InterfaceContract interfaceContract)
Parameters:
component -
contract -
binding -
interfaceContract -

EndpointReferenceImpl

public EndpointReferenceImpl(java.lang.String uri)
Parameters:
uri -
Method Detail

getBinding

public Binding getBinding()
Description copied from interface: EndpointReference
Get the binding for the endpoint

Specified by:
getBinding in interface EndpointReference
Returns:
The binding

setBinding

public void setBinding(Binding binding)

getComponent

public RuntimeComponent getComponent()
Description copied from interface: EndpointReference
Get the component for the endpoint

Specified by:
getComponent in interface EndpointReference
Returns:
The component, null of the EPR is for a non-SCA service

setComponent

public void setComponent(RuntimeComponent component)

getContract

public Contract getContract()
Description copied from interface: EndpointReference
Get the component service or reference for the endpoint

Specified by:
getContract in interface EndpointReference
Returns:
The component service or reference, null if the EPR is for a non-SCA service

setContract

public void setContract(Contract contract)

getInterfaceContract

public InterfaceContract getInterfaceContract()
Description copied from interface: EndpointReference
Get the interface contract for the endpoint

Specified by:
getInterfaceContract in interface EndpointReference
Returns:
The interface contract

setInterfaceContract

public void setInterfaceContract(InterfaceContract interfaceContract)
Description copied from interface: EndpointReference
Update the interface contract for the endpoint

Specified by:
setInterfaceContract in interface EndpointReference
Parameters:
interfaceContract - The updated interface contract

getURI

public java.lang.String getURI()
Description copied from interface: EndpointReference
Get the URI for this endpoint

Specified by:
getURI in interface EndpointReference
Returns:
The URI of the endpoint

setURI

public void setURI(java.lang.String uri)
Description copied from interface: EndpointReference
Set the URI for this endpoint

Specified by:
setURI in interface EndpointReference
Parameters:
uri - The new URI of the endpoint

getCallbackEndpoint

public EndpointReference getCallbackEndpoint()
Description copied from interface: EndpointReference
Get the callback endpoint for this endpoint

Specified by:
getCallbackEndpoint in interface EndpointReference
Returns:
The callback endpoint for this endpoint

setCallbackEndpoint

public void setCallbackEndpoint(EndpointReference callbackEndpoint)
Description copied from interface: EndpointReference
Set the callback endpoint for this endpoint

Specified by:
setCallbackEndpoint in interface EndpointReference
Parameters:
callbackEndpoint - The new callback endpoint for this endpoint

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Specified by:
clone in interface EndpointReference
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException
See Also:
Object.clone()

getReferenceParameters

public ReferenceParameters getReferenceParameters()
Specified by:
getReferenceParameters in interface EndpointReference
Returns:
the parameters

setReferenceParameters

public void setReferenceParameters(ReferenceParameters parameters)
Specified by:
setReferenceParameters in interface EndpointReference
Parameters:
parameters - the parameters to set

mergeEndpoint

public void mergeEndpoint(EndpointReference epr)
Specified by:
mergeEndpoint in interface EndpointReference