Apache Tuscany SCA Kernel Sub-Project

org.apache.tuscany.spi.component
Interface WorkContext


public interface WorkContext

Implementations track information associated with a request as it is processed by the runtime

Version:
$Rev: 441743 $ $Date: 2006-09-08 22:05:09 -0700 (Fri, 08 Sep 2006) $

Method Summary
 void clearIdentifier(Object type)
          Clears the unique key for the given identifier associated with the current request
 void clearIdentifiers()
          Clears all identifiers associated with the current request
 Object getCurrentCorrelationId()
           
 Object getCurrentMessageId()
           
 Object getIdentifier(Object type)
          Returns the unique key for the given identifier associated with the current request
 CompositeComponent getRemoteComponent()
          Returns the composite where a remote request came in
 void setCurrentCorrelationId(Object correlationId)
           
 void setCurrentMessageId(Object messageId)
           
 void setIdentifier(Object type, Object identifier)
          Sets the unique key for the given identifier associated with the current request
 void setRemoteComponent(CompositeComponent component)
          Sets the composite where a remote request came in
 

Method Detail

getCurrentMessageId

Object getCurrentMessageId()

setCurrentMessageId

void setCurrentMessageId(Object messageId)

getCurrentCorrelationId

Object getCurrentCorrelationId()

setCurrentCorrelationId

void setCurrentCorrelationId(Object correlationId)

getRemoteComponent

CompositeComponent getRemoteComponent()
Returns the composite where a remote request came in


setRemoteComponent

void setRemoteComponent(CompositeComponent component)
Sets the composite where a remote request came in


getIdentifier

Object getIdentifier(Object type)
Returns the unique key for the given identifier associated with the current request


setIdentifier

void setIdentifier(Object type,
                   Object identifier)
Sets the unique key for the given identifier associated with the current request


clearIdentifier

void clearIdentifier(Object type)
Clears the unique key for the given identifier associated with the current request


clearIdentifiers

void clearIdentifiers()
Clears all identifiers associated with the current request


Apache Tuscany SCA Kernel Sub-Project

-