| org.apache.velocity.runtime.resource.ResourceCache
All known Subclasses: org.apache.velocity.runtime.resource.ResourceCacheImpl,
ResourceCache | public interface ResourceCache (Code) | | Interface that defines the shape of a pluggable resource cache
for the included ResourceManager
author: Geir Magnusson Jr. version: $Id: ResourceCache.java 463298 2006-10-12 16:10:32Z henning $ |
enumerateKeys | public Iterator enumerateKeys()(Code) | | returns an Iterator of Keys in the cache.
An Iterator of Keys in the cache. |
get | public Resource get(Object resourceKey)(Code) | | retrieves a Resource from the
cache
Parameters: resourceKey - key for Resource to be retrieved Resource specified or null if not found |
initialize | public void initialize(RuntimeServices rs)(Code) | | initializes the ResourceCache. Will be
called before any utilization
Parameters: rs - RuntimeServices to use for logging, etc |
put | public Resource put(Object resourceKey, Resource resource)(Code) | | stores a Resource in the cache
Parameters: resourceKey - key to associate with the Resource Parameters: resource - Resource to be stored existing Resource stored under this key, or null if none |
remove | public Resource remove(Object resourceKey)(Code) | | removes a Resource from the cache
Parameters: resourceKey - resource to be removed stored under key |
|
|