Save This Page
Home » velocity-1.5 » org.apache » velocity » runtime » resource » [javadoc | source]
org.apache.velocity.runtime.resource
public class: ResourceCacheImpl [javadoc | source]
java.lang.Object
   org.apache.velocity.runtime.resource.ResourceCacheImpl

All Implemented Interfaces:
    ResourceCache

Default implementation of the resource cache for the default ResourceManager. The cache uses a least recently used (LRU) algorithm, with a maximum size specified via the resource.manager.cache.size property (idenfied by the org.apache.velocity.runtime.RuntimeConstants#RESOURCE_MANAGER_DEFAULTCACHE_SIZE constant). This property get be set to 0 or less for a greedy, unbounded cache (the behavior from pre-v1.5).
Field Summary
protected  Map cache    Cache storage, assumed to be thread-safe. 
protected  RuntimeServices rsvc    Runtime services, generally initialized by the initialize() method. 
Method from org.apache.velocity.runtime.resource.ResourceCacheImpl Summary:
enumerateKeys,   get,   initialize,   put,   remove
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.velocity.runtime.resource.ResourceCacheImpl Detail:
 public Iterator enumerateKeys() 
 public Resource get(Object key) 
 public  void initialize(RuntimeServices rs) 
 public Resource put(Object key,
    Resource value) 
 public Resource remove(Object key)