org.apache.tuscany.sca.assembly
Interface Endpoint

All Superinterfaces:
Base, java.lang.Cloneable
All Known Implementing Classes:
EndpointImpl

public interface Endpoint
extends Base, java.lang.Cloneable

Represents an endpoint (primarily a combination of a target service name and a set of candidate bindings)


Method Summary
 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
 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
 void setInterfaceContract(InterfaceContract interfaceContract)
          Sets the interface contract defining the interface
 void setSourceBinding(Binding binding)
          Set the resolved source binding
 void setSourceCallbackBinding(Binding binding)
          Set the resolved source callback binding
 void setSourceComponent(Component component)
          Set the source component model object
 void setSourceComponentReference(ComponentReference reference)
          Set the source component reference model object
 void setTargetBinding(Binding binding)
          Set the resolved target binding
 void setTargetComponent(Component component)
          Set the target component model object
 void setTargetComponentService(ComponentService service)
          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
 
Methods inherited from interface org.apache.tuscany.sca.assembly.Base
isUnresolved, setUnresolved
 

Method Detail

getTargetName

java.lang.String getTargetName()
Get the name of the target service that this endpoint refers to

Returns:
target service name

setTargetName

void setTargetName(java.lang.String targetName)
Set the name of the target service that this endpoint refers to

Parameters:
targetName -

getSourceComponent

Component getSourceComponent()
Get the source component model object

Returns:
source component

setSourceComponent

void setSourceComponent(Component component)
Set the source component model object

Parameters:
component - the source component for the endpoint

getSourceComponentReference

ComponentReference getSourceComponentReference()
Get the source component reference model object

Returns:
reference the source component reference for the endpoint

setSourceComponentReference

void setSourceComponentReference(ComponentReference reference)
Set the source component reference model object

Parameters:
reference -

getSourceBinding

Binding getSourceBinding()
Get the resolved source binding

Returns:
binding the resolved source binding

setSourceBinding

void setSourceBinding(Binding binding)
Set the resolved source binding

Parameters:
binding - the resolved source binding

getSourceCallbackBinding

Binding getSourceCallbackBinding()
Get the resolved source callback binding

Returns:
binding the resolved source callback binding

setSourceCallbackBinding

void setSourceCallbackBinding(Binding binding)
Set the resolved source callback binding

Parameters:
binding - the resolved source callback binding

getCandidateBindings

java.util.List<Binding> getCandidateBindings()
Get the list of candidate bindings that could be used to communication with the target service

Returns:
list of candidate bindings

getTargetComponent

Component getTargetComponent()
Get the target component model object

Returns:
target component

setTargetComponent

void setTargetComponent(Component component)
Set the target component model object

Parameters:
component - target component

getTargetComponentService

ComponentService getTargetComponentService()
Get the target component service model object

Returns:
target component service

setTargetComponentService

void setTargetComponentService(ComponentService service)
Set the target component service model object

Parameters:
service -

getTargetBinding

Binding getTargetBinding()
Get the resolved target binding

Returns:
target binding

setTargetBinding

void setTargetBinding(Binding binding)
Set the resolved target binding

Parameters:
binding - target binding

getInterfaceContract

InterfaceContract getInterfaceContract()
Returns the interface contract defining the interface

Returns:
the interface contract

setInterfaceContract

void setInterfaceContract(InterfaceContract interfaceContract)
Sets the interface contract defining the interface

Parameters:
interfaceContract - the interface contract