org.apache.velocity.runtime.resource
Interface ResourceCache
- ResourceCacheImpl
public interface ResourceCache
Interface that defines the shape of a pluggable resource cache
for the included ResourceManager
Version:
- Geir Magnusson Jr.
enumerateKeys
public Iterator enumerateKeys()
returns an Iterator of Keys in the cache
get
public Resource get(Object resourceKey)
retrieves a Resource from the
cache
resourceKey
- key for Resource to be retrieved
- Resource specified or null if not found
initialize
public void initialize(RuntimeServices rs)
initializes the ResourceCache. Will be
called before any utilization
rs
- RuntimeServices to use for logging, etc
put
public Resource put(Object resourceKey,
Resource resource)
stores a Resource in the cache
resourceKey
- key to associate with the Resourceresource
- Resource to be stored
- existing Resource stored under this key, or null if none
remove
public Resource remove(Object resourceKey)
removes a Resource from the cache
resourceKey
- resource to be removed
Copyright B) 2002 Apache Software Foundation. All Rights Reserved.