|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.velocity.runtime.resource.ResourceCacheImpl
Default implementation of the resource cache for the default ResourceManager.
Field Summary | |
protected java.util.Map |
cache
Cache storage, assumed to be thread-safe. |
protected RuntimeServices |
rsvc
Runtime services, generally initialized by the initialize() method. |
Constructor Summary | |
ResourceCacheImpl()
|
Method Summary | |
java.util.Iterator |
enumerateKeys()
returns an Iterator of Keys in the cache |
Resource |
get(java.lang.Object key)
retrieves a Resource from the cache |
void |
initialize(RuntimeServices rs)
initializes the ResourceCache. |
Resource |
put(java.lang.Object key,
Resource value)
stores a Resource in the cache |
Resource |
remove(java.lang.Object key)
removes a Resource from the cache |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Map cache
protected RuntimeServices rsvc
initialize()
method.
Constructor Detail |
public ResourceCacheImpl()
Method Detail |
public void initialize(RuntimeServices rs)
ResourceCache
initialize
in interface ResourceCache
rs
- RuntimeServices to use for logging, etcpublic Resource get(java.lang.Object key)
ResourceCache
get
in interface ResourceCache
key
- key for Resource to be retrieved
public Resource put(java.lang.Object key, Resource value)
ResourceCache
put
in interface ResourceCache
key
- key to associate with the Resourcevalue
- Resource to be stored
public Resource remove(java.lang.Object key)
ResourceCache
remove
in interface ResourceCache
key
- resource to be removedpublic java.util.Iterator enumerateKeys()
ResourceCache
enumerateKeys
in interface ResourceCache
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |