Tuscany Assembly Model

org.apache.tuscany.model.assembly
Interface Port

All Superinterfaces:
AssemblyObject
All Known Subinterfaces:
Reference, Service
All Known Implementing Classes:
PortImpl, ReferenceImpl, ServiceImpl

public interface Port
extends AssemblyObject

Abstraction for the association of a service contract with a requestor or provider.


Method Summary
 java.lang.String getName()
          Returns the name of the port where it is associated with a requestor or provider.
 ServiceContract getServiceContract()
          Returns the contract for invocations of a service using this port.
 void setName(java.lang.String name)
          Sets the name of the port where it is associated with a requestor or provider.
 void setServiceContract(ServiceContract contract)
          Set the contract for invocations of a service using this port.
 
Methods inherited from interface org.apache.tuscany.model.assembly.AssemblyObject
accept, freeze, initialize
 

Method Detail

getServiceContract

ServiceContract getServiceContract()
Returns the contract for invocations of a service using this port.

Returns:
the oontract for invocations of a service using this port

setServiceContract

void setServiceContract(ServiceContract contract)
Set the contract for invocations of a service using this port.

Parameters:
contract - the contract for invocations of a service using this port

getName

java.lang.String getName()
Returns the name of the port where it is associated with a requestor or provider.

Returns:
the name of the port

setName

void setName(java.lang.String name)
Sets the name of the port where it is associated with a requestor or provider.

Parameters:
name - the name of the port where it is associated with a requestor or provider

Tuscany Assembly Model

-