com.scooterframework.common.util
Class CurrentThreadCache

java.lang.Object
  extended by com.scooterframework.common.util.CurrentThreadCache

public class CurrentThreadCache
extends java.lang.Object

CurrentThreadCache class is a local store for current request.


Constructor Summary
CurrentThreadCache()
           
 
Method Summary
static void clear()
          Clears all content of the cache.
static void clear(java.lang.String key)
          Clears content of the cache associated with a key.
static java.lang.Object get(java.lang.String key)
          Retrieves the property for a key.
static void set(java.lang.String key, java.lang.Object value)
          Stores a property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurrentThreadCache

public CurrentThreadCache()
Method Detail

get

public static java.lang.Object get(java.lang.String key)
Retrieves the property for a key.

Parameters:
key - key name of the property
Returns:
the property

set

public static void set(java.lang.String key,
                       java.lang.Object value)
Stores a property.

Parameters:
key - key name of the property
value - value of the property

clear

public static void clear()
Clears all content of the cache.


clear

public static void clear(java.lang.String key)
Clears content of the cache associated with a key.