Tuscany Core

org.apache.tuscany.core.context.impl
Class EventContextImpl

java.lang.Object
  extended by org.apache.tuscany.core.context.impl.EventContextImpl
All Implemented Interfaces:
EventContext

public class EventContextImpl
extends Object
implements EventContext

An implementation of an EventContext that handles event-to-thread associations using an InheritableThreadLocal

Version:
$Rev: 408581 $ $Date: 2006-05-21 23:34:24 -0700 (Sun, 21 May 2006) $

Constructor Summary
EventContextImpl()
           
 
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 getIdentifier(Object type)
          Returns the unique key for the given identifier associated with the current request
 void setIdentifier(Object type, Object identifier)
          Sets the unique key for the given identifier associated with the current request
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventContextImpl

public EventContextImpl()
Method Detail

getIdentifier

public Object getIdentifier(Object type)
Description copied from interface: EventContext
Returns the unique key for the given identifier associated with the current request

Specified by:
getIdentifier in interface EventContext

setIdentifier

public void setIdentifier(Object type,
                          Object identifier)
Description copied from interface: EventContext
Sets the unique key for the given identifier associated with the current request

Specified by:
setIdentifier in interface EventContext

clearIdentifier

public void clearIdentifier(Object type)
Description copied from interface: EventContext
Clears the unique key for the given identifier associated with the current request

Specified by:
clearIdentifier in interface EventContext

clearIdentifiers

public void clearIdentifiers()
Description copied from interface: EventContext
Clears all identifiers associated with the current request

Specified by:
clearIdentifiers in interface EventContext

Tuscany Core

-