org.apache.myfaces.trinidadinternal.config
Class ThreadLocalResetter

java.lang.Object
  extended by org.apache.myfaces.trinidad.util.ThreadLocalUtils.ThreadLocalLifecycle
      extended by org.apache.myfaces.trinidadinternal.config.ThreadLocalResetter

public class ThreadLocalResetter
extends org.apache.myfaces.trinidad.util.ThreadLocalUtils.ThreadLocalLifecycle

Implementation of ThreadLocalLifecycle for request-scoped ThreadLocals, registered through META-INF/SERVICES. This class cooperates with GlobalConfiguratorImpl in order to ensure that the request-scoped ThreadLocals are cleaned up at the end of each request.


Constructor Summary
ThreadLocalResetter()
          All class to be instatiated through reflection
 
Method Summary
 void init(org.apache.myfaces.trinidad.util.ThreadLocalUtils.ThreadLocalManager manager)
          Called by ThreadLocalUtils after instantiating the ThreadLocalResetter in order to pass the ThreadLocalManager to use to clean up the request-scoped ThreadLocals.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadLocalResetter

public ThreadLocalResetter()
All class to be instatiated through reflection

Method Detail

init

public void init(org.apache.myfaces.trinidad.util.ThreadLocalUtils.ThreadLocalManager manager)
Called by ThreadLocalUtils after instantiating the ThreadLocalResetter in order to pass the ThreadLocalManager to use to clean up the request-scoped ThreadLocals.

Specified by:
init in class org.apache.myfaces.trinidad.util.ThreadLocalUtils.ThreadLocalLifecycle


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.