| org.apache.tapestry.ioc.services.ThreadCleanupHub
All known Subclasses: org.apache.tapestry.ioc.internal.services.ThreadCleanupHubImpl,
ThreadCleanupHub | public interface ThreadCleanupHub (Code) | | Event hub used to identify when the end of thread cleanup (i.e., end of request cleanup in a
typical web application) should occur. Tapestry IoC has any number of objects that need to know
when this event occurs, so that they can clean up any per-thread/per-request state.
|
addThreadCleanupListener | void addThreadCleanupListener(ThreadCleanupListener listener)(Code) | | Adds a listener to the hub. The hub maintains a seperate list of listeners for each thread
(i.e., using a ThreadLocal). Further, the listener list is discarded at the end of the
request.
Parameters: listener - to add |
cleanup | void cleanup()(Code) | | Immediately performs a cleanup of the thread, notifying all listeners.
|
|
|