FileDocCategorySizeDatePackage
CacheBase.javaAPI DocGlassfish v2 API2893Fri May 04 22:30:32 BST 2007com.sun.appserv.management.client.handler

CacheBase

public class CacheBase extends Object
Cache which caches anything

Fields Summary
private final Map
mCache
Constructors Summary
public CacheBase()

		mCache	= Collections.synchronizedMap( new HashMap<K,V>() );
	
Methods Summary
public voidcacheItem(K key, V value)
Cache a proxy using any desired key.

		mCache.put( key, value );
	
public voidclear()

		mCache.clear();
	
public VgetCachedItem(K key)

		return( mCache.get( key ) );
	
public java.util.SetkeySet()

		return( mCache.keySet() );
	
public voidremove(K key)

		mCache.remove( key );
	
public java.util.Collectionvalues()

		return( mCache.values() );