org.jboss.shotoku.cache
Class ShotokuCache

java.lang.Object
  extended by org.jboss.shotoku.cache.ShotokuCache

public class ShotokuCache
extends java.lang.Object

A global cache.

Author:
Adam Warski (adamw@aster.pl)

Constructor Summary
ShotokuCache()
           
 
Method Summary
static java.lang.Object get(java.lang.Object key)
          Gets an object from the cache, which is bound to the given key.
static void put(java.lang.Object key, java.lang.Object o)
          Places the given object in the cache, binding it with the given key.
static void remove(java.lang.Object key)
          Removes a binding for the key in the cache, in one exists.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShotokuCache

public ShotokuCache()
Method Detail

put

public static void put(java.lang.Object key,
                       java.lang.Object o)
Places the given object in the cache, binding it with the given key.

Parameters:
key - Key for the object.
o - Object to place in the cache.

get

public static java.lang.Object get(java.lang.Object key)
Gets an object from the cache, which is bound to the given key.

Parameters:
key - Key for which to get the object.
Returns:
Object bound with the given key, or null this key is not bound.

remove

public static void remove(java.lang.Object key)
Removes a binding for the key in the cache, in one exists.

Parameters:
key - Key to remove.


Copyright © -2006 . All Rights Reserved.