org.apache.tuscany.sca.assembly
Interface ComponentService

All Superinterfaces:
AbstractContract, AbstractService, Base, java.lang.Cloneable, Contract, Extensible, IntentAttachPoint, OperationsConfigurator, PolicySetAttachPoint, Service
All Known Subinterfaces:
RuntimeComponentService
All Known Implementing Classes:
ComponentServiceImpl, RuntimeComponentServiceImpl

public interface ComponentService
extends Service

An addressable instance of a service associated with a particular component.


Method Summary
 ComponentReference getCallbackReference()
          Returns the callback reference created internally as a source endpoint for callbacks from this service.
 Service getService()
          Returns the service defined by the implementation for this service.
 void setCallbackReference(ComponentReference callbackReference)
          Sets the callback reference created internally as a source endpoint for callbacks from this service.
 void setService(Service service)
          Sets the service defined by the implementation for this service.
 
Methods inherited from interface org.apache.tuscany.sca.assembly.Contract
clone, getBinding, getBindings, getCallback, getCallbackBinding, getInterfaceContract, setCallback
 
Methods inherited from interface org.apache.tuscany.sca.assembly.AbstractContract
getInterfaceContract, getName, isCallback, setInterfaceContract, setIsCallback, setName
 
Methods inherited from interface org.apache.tuscany.sca.assembly.Base
isUnresolved, setUnresolved
 
Methods inherited from interface org.apache.tuscany.sca.assembly.Extensible
getExtensions
 
Methods inherited from interface org.apache.tuscany.sca.assembly.OperationsConfigurator
getConfiguredOperations
 
Methods inherited from interface org.apache.tuscany.sca.policy.PolicySetAttachPoint
getApplicablePolicySets, getPolicySets
 
Methods inherited from interface org.apache.tuscany.sca.policy.IntentAttachPoint
getRequiredIntents, getType, setType
 

Method Detail

getService

Service getService()
Returns the service defined by the implementation for this service.

Returns:

setService

void setService(Service service)
Sets the service defined by the implementation for this service.

Parameters:
service -

getCallbackReference

ComponentReference getCallbackReference()
Returns the callback reference created internally as a source endpoint for callbacks from this service.

Returns:
the callback reference

setCallbackReference

void setCallbackReference(ComponentReference callbackReference)
Sets the callback reference created internally as a source endpoint for callbacks from this service.

Parameters:
callbackReference - the callback reference