org.apache.cocoon.forms
Class DefaultCacheManager

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.forms.DefaultCacheManager
All Implemented Interfaces:
Disposable, Component, LogEnabled, ThreadSafe, CacheManager

public class DefaultCacheManager
extends AbstractLogEnabled
implements CacheManager, Disposable, ThreadSafe, Component

Component implementing the CacheManager role.

Version:
$Id: DefaultCacheManager.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Field Summary
protected  Map cache
           
 
Fields inherited from interface org.apache.cocoon.forms.CacheManager
ROLE
 
Constructor Summary
DefaultCacheManager()
           
 
Method Summary
 void dispose()
           
 Object get(Source source, String prefix)
          Retrieves an object from the cache.
 void remove(Source source, String prefix)
          Removes an object from the cache.
 void set(Object object, Source source, String prefix)
          Saves an object in the cache.
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cache

protected Map cache
Constructor Detail

DefaultCacheManager

public DefaultCacheManager()
Method Detail

dispose

public void dispose()
Specified by:
dispose in interface Disposable

get

public Object get(Source source,
                  String prefix)
Description copied from interface: CacheManager
Retrieves an object from the cache.

Specified by:
get in interface CacheManager

set

public void set(Object object,
                Source source,
                String prefix)
Description copied from interface: CacheManager
Saves an object in the cache.

Specified by:
set in interface CacheManager

remove

public void remove(Source source,
                   String prefix)
Description copied from interface: CacheManager
Removes an object from the cache.

Specified by:
remove in interface CacheManager


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.