2016/05/28 - Apache Tuscany has been retired.

For more information, please explore the Attic.



org.apache.tuscany.sca.assembly.impl
Class EndpointImpl

java.lang.Object
  extended by org.apache.tuscany.sca.assembly.impl.EndpointImpl
All Implemented Interfaces:
java.lang.Cloneable, Base, Endpoint

public class EndpointImpl
extends java.lang.Object
implements Endpoint

The assembly model object for an endpoint.


Constructor Summary
protected EndpointImpl()
           
 
Method Summary
 java.lang.Object clone()
           
 java.util.List<Binding> getCandidateBindings()
          Get the list of candidate bindings that could be used to communication with the target service
 InterfaceContract getInterfaceContract()
          Returns the interface contract defining the interface
 Binding getSourceBinding()
          Get the resolved source binding
 Binding getSourceCallbackBinding()
          Get the resolved source callback binding
 Component getSourceComponent()
          Get the source component model object
 ComponentReference getSourceComponentReference()
          Get the source component reference model object
 Binding getTargetBinding()
          Get the resolved target binding
 Binding getTargetCallbackBinding()
           
 Component getTargetComponent()
          Get the target component model object
 ComponentService getTargetComponentService()
          Get the target component service model object
 java.lang.String getTargetName()
          Get the name of the target service that this endpoint refers to
 boolean isUnresolved()
          Returns true if the model element is unresolved.
 void setInterfaceContract(InterfaceContract interfaceContract)
          Sets the interface contract defining the interface
 void setSourceBinding(Binding resolvedBinding)
          Set the resolved source binding
 void setSourceCallbackBinding(Binding resolvedCallbackBinding)
          Set the resolved source callback binding
 void setSourceComponent(Component sourceComponent)
          Set the source component model object
 void setSourceComponentReference(ComponentReference sourceComponentReference)
          Set the source component reference model object
 void setTargetBinding(Binding targetBinding)
          Set the resolved target binding
 void setTargetCallbackBinding(Binding targetCallbackBinding)
           
 void setTargetComponent(Component targetComponent)
          Set the target component model object
 void setTargetComponentService(ComponentService targetComponentService)
          Set the target component service model object
 void setTargetName(java.lang.String targetName)
          Set the name of the target service that this endpoint refers to
 void setUnresolved(boolean unresolved)
          Sets whether the model element is unresolved.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndpointImpl

protected EndpointImpl()
Method Detail

isUnresolved

public boolean isUnresolved()
Description copied from interface: Base
Returns true if the model element is unresolved.

Specified by:
isUnresolved in interface Base
Returns:
true if the model element is unresolved.

setUnresolved

public void setUnresolved(boolean unresolved)
Description copied from interface: Base
Sets whether the model element is unresolved.

Specified by:
setUnresolved in interface Base
Parameters:
unresolved - whether the model element is unresolved

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

getTargetName

public java.lang.String getTargetName()
Description copied from interface: Endpoint
Get the name of the target service that this endpoint refers to

Specified by:
getTargetName in interface Endpoint
Returns:
target service name

setTargetName

public void setTargetName(java.lang.String targetName)
Description copied from interface: Endpoint
Set the name of the target service that this endpoint refers to

Specified by:
setTargetName in interface Endpoint

getSourceComponent

public Component getSourceComponent()
Description copied from interface: Endpoint
Get the source component model object

Specified by:
getSourceComponent in interface Endpoint
Returns:
source component

setSourceComponent

public void setSourceComponent(Component sourceComponent)
Description copied from interface: Endpoint
Set the source component model object

Specified by:
setSourceComponent in interface Endpoint
Parameters:
sourceComponent - the source component for the endpoint

getSourceComponentReference

public ComponentReference getSourceComponentReference()
Description copied from interface: Endpoint
Get the source component reference model object

Specified by:
getSourceComponentReference in interface Endpoint
Returns:
reference the source component reference for the endpoint

setSourceComponentReference

public void setSourceComponentReference(ComponentReference sourceComponentReference)
Description copied from interface: Endpoint
Set the source component reference model object

Specified by:
setSourceComponentReference in interface Endpoint

getSourceBinding

public Binding getSourceBinding()
Description copied from interface: Endpoint
Get the resolved source binding

Specified by:
getSourceBinding in interface Endpoint
Returns:
binding the resolved source binding

setSourceBinding

public void setSourceBinding(Binding resolvedBinding)
Description copied from interface: Endpoint
Set the resolved source binding

Specified by:
setSourceBinding in interface Endpoint
Parameters:
resolvedBinding - the resolved source binding

getSourceCallbackBinding

public Binding getSourceCallbackBinding()
Description copied from interface: Endpoint
Get the resolved source callback binding

Specified by:
getSourceCallbackBinding in interface Endpoint
Returns:
binding the resolved source callback binding

setSourceCallbackBinding

public void setSourceCallbackBinding(Binding resolvedCallbackBinding)
Description copied from interface: Endpoint
Set the resolved source callback binding

Specified by:
setSourceCallbackBinding in interface Endpoint
Parameters:
resolvedCallbackBinding - the resolved source callback binding

getCandidateBindings

public java.util.List<Binding> getCandidateBindings()
Description copied from interface: Endpoint
Get the list of candidate bindings that could be used to communication with the target service

Specified by:
getCandidateBindings in interface Endpoint
Returns:
list of candidate bindings

getTargetComponent

public Component getTargetComponent()
Description copied from interface: Endpoint
Get the target component model object

Specified by:
getTargetComponent in interface Endpoint
Returns:
target component

setTargetComponent

public void setTargetComponent(Component targetComponent)
Description copied from interface: Endpoint
Set the target component model object

Specified by:
setTargetComponent in interface Endpoint
Parameters:
targetComponent - target component

getTargetComponentService

public ComponentService getTargetComponentService()
Description copied from interface: Endpoint
Get the target component service model object

Specified by:
getTargetComponentService in interface Endpoint
Returns:
target component service

setTargetComponentService

public void setTargetComponentService(ComponentService targetComponentService)
Description copied from interface: Endpoint
Set the target component service model object

Specified by:
setTargetComponentService in interface Endpoint

getTargetBinding

public Binding getTargetBinding()
Description copied from interface: Endpoint
Get the resolved target binding

Specified by:
getTargetBinding in interface Endpoint
Returns:
target binding

setTargetBinding

public void setTargetBinding(Binding targetBinding)
Description copied from interface: Endpoint
Set the resolved target binding

Specified by:
setTargetBinding in interface Endpoint
Parameters:
targetBinding - target binding

getTargetCallbackBinding

public Binding getTargetCallbackBinding()

setTargetCallbackBinding

public void setTargetCallbackBinding(Binding targetCallbackBinding)

getInterfaceContract

public InterfaceContract getInterfaceContract()
Description copied from interface: Endpoint
Returns the interface contract defining the interface

Specified by:
getInterfaceContract in interface Endpoint
Returns:
the interface contract

setInterfaceContract

public void setInterfaceContract(InterfaceContract interfaceContract)
Description copied from interface: Endpoint
Sets the interface contract defining the interface

Specified by:
setInterfaceContract in interface Endpoint
Parameters:
interfaceContract - the interface contract