org.apache.openejb.cdi
Class RequestScopedThreadContextListener

java.lang.Object
  extended by org.apache.openejb.cdi.RequestScopedThreadContextListener
All Implemented Interfaces:
ThreadContextListener

public class RequestScopedThreadContextListener
extends Object
implements ThreadContextListener

Version:
$Rev$ $Date$

Constructor Summary
RequestScopedThreadContextListener()
           
 
Method Summary
 void contextEntered(ThreadContext oldContext, ThreadContext newContext)
          A new context has been entered.
 void contextExited(ThreadContext exitedContext, ThreadContext reenteredContext)
          A context has exited.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestScopedThreadContextListener

public RequestScopedThreadContextListener()
Method Detail

contextEntered

public void contextEntered(ThreadContext oldContext,
                           ThreadContext newContext)
Description copied from interface: ThreadContextListener
A new context has been entered. The new context is already associated with the thread.

Specified by:
contextEntered in interface ThreadContextListener
Parameters:
oldContext - the old context that was associated with the thread
newContext - the new context that is now associated with the thread

contextExited

public void contextExited(ThreadContext exitedContext,
                          ThreadContext reenteredContext)
Description copied from interface: ThreadContextListener
A context has exited. The reentered context is already associated with the thread.

Specified by:
contextExited in interface ThreadContextListener
Parameters:
exitedContext - the context that was exited
reenteredContext - the context that is not associated with the thread


Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.