org.apache.tuscany.sca.assembly.impl
Class ComponentServiceImpl

java.lang.Object
  extended by org.apache.tuscany.sca.assembly.impl.BaseImpl
      extended by org.apache.tuscany.sca.assembly.impl.ExtensibleImpl
          extended by org.apache.tuscany.sca.assembly.impl.ContractImpl
              extended by org.apache.tuscany.sca.assembly.impl.AbstractServiceImpl
                  extended by org.apache.tuscany.sca.assembly.impl.ServiceImpl
                      extended by org.apache.tuscany.sca.assembly.impl.ComponentServiceImpl
All Implemented Interfaces:
java.lang.Cloneable, AbstractContract, AbstractService, Base, ComponentService, Contract, Extensible, OperationsConfigurator, Service, IntentAttachPoint, PolicySetAttachPoint
Direct Known Subclasses:
RuntimeComponentServiceImpl

public class ComponentServiceImpl
extends ServiceImpl
implements ComponentService, java.lang.Cloneable

Represents a component service


Constructor Summary
protected ComponentServiceImpl()
          Constructs a new component service.
 
Method Summary
 java.lang.Object clone()
          Returns a clone of the contract.
 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.
 java.util.List<CompositeService> promotedAs()
           
 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 class org.apache.tuscany.sca.assembly.impl.ServiceImpl
getApplicablePolicySets, getBinding, getBindings, getCallback, getCallbackBinding, getInterfaceContract, getPolicySets, setCallback, setPolicySets
 
Methods inherited from class org.apache.tuscany.sca.assembly.impl.ContractImpl
getConfiguredOperations, getInterfaceContract, getName, getRequiredIntents, getType, isCallback, setConfiguredOperations, setInterfaceContract, setIsCallback, setName, setRequiredIntents, setType
 
Methods inherited from class org.apache.tuscany.sca.assembly.impl.ExtensibleImpl
getExtensions
 
Methods inherited from class org.apache.tuscany.sca.assembly.impl.BaseImpl
isUnresolved, setUnresolved
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.tuscany.sca.assembly.Contract
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
 

Constructor Detail

ComponentServiceImpl

protected ComponentServiceImpl()
Constructs a new component service.

Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Description copied from interface: Contract
Returns a clone of the contract.

Specified by:
clone in interface Contract
Overrides:
clone in class ServiceImpl
Returns:
a clone of the reference
Throws:
java.lang.CloneNotSupportedException

getService

public Service getService()
Description copied from interface: ComponentService
Returns the service defined by the implementation for this service.

Specified by:
getService in interface ComponentService
Returns:

setService

public void setService(Service service)
Description copied from interface: ComponentService
Sets the service defined by the implementation for this service.

Specified by:
setService in interface ComponentService

promotedAs

public java.util.List<CompositeService> promotedAs()

getCallbackReference

public ComponentReference getCallbackReference()
Description copied from interface: ComponentService
Returns the callback reference created internally as a source endpoint for callbacks from this service.

Specified by:
getCallbackReference in interface ComponentService
Returns:
the callback reference

setCallbackReference

public void setCallbackReference(ComponentReference callbackReference)
Description copied from interface: ComponentService
Sets the callback reference created internally as a source endpoint for callbacks from this service.

Specified by:
setCallbackReference in interface ComponentService
Parameters:
callbackReference - the callback reference