Tuscany Assembly Model

org.apache.tuscany.model.assembly
Interface ServiceContract

All Superinterfaces:
AssemblyObject, Extensible
All Known Subinterfaces:
JavaServiceContract, WSDLServiceContract
All Known Implementing Classes:
JavaServiceContractImpl, ServiceContractImpl, WSDLServiceContractImpl

public interface ServiceContract
extends Extensible

The contract specified by a requestor or provider for invocations across a port.


Method Summary
 Class getCallbackInterface()
          Returns the callback interface for wire from the provider back to its requestor.
 Class getInterface()
          Returns the interface for invocations from the requestor to the provider.
 Scope getScope()
          Returns the scope of this service contract.
 void setCallbackInterface(Class value)
          Sets the callback interface for wire from the provider back to its requestor.
 void setInterface(Class value)
          Sets the interface for invocations from the requestor to the provider.
 void setScope(Scope scope)
          Sets the scope.
 
Methods inherited from interface org.apache.tuscany.model.assembly.Extensible
getExtensibilityAttributes, getExtensibilityElements
 
Methods inherited from interface org.apache.tuscany.model.assembly.AssemblyObject
accept, freeze, initialize
 

Method Detail

getInterface

Class getInterface()
Returns the interface for invocations from the requestor to the provider.

Returns:
the interface for invocations from the requestor to the provider

setInterface

void setInterface(Class value)
Sets the interface for invocations from the requestor to the provider.

Parameters:
value - the interface for invocations from the requestor to the provider

getCallbackInterface

Class getCallbackInterface()
Returns the callback interface for wire from the provider back to its requestor.

Returns:
the callback interface for wire from the provider back to its requestor

setCallbackInterface

void setCallbackInterface(Class value)
Sets the callback interface for wire from the provider back to its requestor.

Parameters:
value - the callback interface for wire from the provider back to its requestor

getScope

Scope getScope()
Returns the scope of this service contract.

Returns:

setScope

void setScope(Scope scope)
Sets the scope.

Parameters:
scope - of this service contract.

Tuscany Assembly Model

-