org.apache.openejb.core
Interface ThreadContextListener

All Known Implementing Classes:
AbstractSecurityService, SecurityServiceImpl

public interface ThreadContextListener


Method Summary
 void contextEntered(ThreadContext oldContext, ThreadContext newContext)
          A new context has been entered.
 void contextExited(ThreadContext exitedContext, ThreadContext reenteredContext)
          A context has exited.
 

Method Detail

contextEntered

void contextEntered(ThreadContext oldContext,
                    ThreadContext newContext)
A new context has been entered. The new context is already associated with the thread.

Parameters:
oldContext - the old context that was associated with the thread
newContext - the new context that is now associated with the thread

contextExited

void contextExited(ThreadContext exitedContext,
                   ThreadContext reenteredContext)
A context has exited. The reentered context is already associated with the thread.

Parameters:
exitedContext - the context that was exited
reenteredContext - the context that is not associated with the thread


Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.