org.apache.tuscany.sca.assembly
Interface AbstractContract

All Superinterfaces:
Base, IntentAttachPoint
All Known Subinterfaces:
AbstractReference, AbstractService, ComponentReference, ComponentService, CompositeReference, CompositeService, Contract, Reference, RuntimeComponentReference, RuntimeComponentService, Service

public interface AbstractContract
extends Base, IntentAttachPoint

Interface contracts define one or more business functions. These business functions are provided by services and are used by references.

Version:
$Rev: 537404 $ $Date: 2007-05-12 13:51:42 +0100 (Sat, 12 May 2007) $

Method Summary
 InterfaceContract getInterfaceContract()
          Returns the interface contract defining the interface and callback interface for the contract.
 java.lang.String getName()
          Returns the name of the contract.
 void setInterfaceContract(InterfaceContract interfaceContract)
          Returns the interface contract defining the interface and callback interface for the contract.
 void setName(java.lang.String name)
          Sets the name of the contract.
 
Methods inherited from interface org.apache.tuscany.sca.assembly.Base
getExtensions, isUnresolved, setUnresolved
 
Methods inherited from interface org.apache.tuscany.sca.policy.IntentAttachPoint
getRequiredIntents
 

Method Detail

getName

java.lang.String getName()
Returns the name of the contract.

Returns:
the name of the contract

setName

void setName(java.lang.String name)
Sets the name of the contract.

Parameters:
name - the name of the contract

getInterfaceContract

InterfaceContract getInterfaceContract()
Returns the interface contract defining the interface and callback interface for the contract.

Returns:
the interface contract

setInterfaceContract

void setInterfaceContract(InterfaceContract interfaceContract)
Returns the interface contract defining the interface and callback interface for the contract.

Parameters:
interfaceContract - the interface contract