com.webmethods.caf.common
Class ThreadLocalUtil

java.lang.Object
  extended by com.webmethods.caf.common.ThreadLocalUtil

public class ThreadLocalUtil
extends Object

Utility class with base methods for thread control and grouping.


Constructor Summary
ThreadLocalUtil()
           
 
Method Summary
static Object getThreadLocalStorage(Object key)
          retrieves an object from a hashmap associated with the current thread
static Object getTLS(Object key)
           
static void putThreadLocalStorage(Object key, Object value)
          puts an object into a hashmap associated with the current thread
static void putTLS(Object key, Object value)
           
static void removeThreadLocalStorage(Object key)
          removes an object from a hashmap associated with the current thread
static void removeTLS(Object key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadLocalUtil

public ThreadLocalUtil()
Method Detail

putThreadLocalStorage

public static void putThreadLocalStorage(Object key,
                                         Object value)
puts an object into a hashmap associated with the current thread


removeThreadLocalStorage

public static void removeThreadLocalStorage(Object key)
removes an object from a hashmap associated with the current thread


getThreadLocalStorage

public static Object getThreadLocalStorage(Object key)
retrieves an object from a hashmap associated with the current thread


putTLS

public static void putTLS(Object key,
                          Object value)
See Also:
Note: this is for those who don't like to type

getTLS

public static Object getTLS(Object key)
See Also:
Note: this is for those who don't like to type

removeTLS

public static void removeTLS(Object key)
See Also:
Note: this is for those who don't like to type