org.apache.velocity.runtime.resource

Class ResourceCacheImpl

public class ResourceCacheImpl extends Object implements ResourceCache

Default implementation of the resource cache for the default ResourceManager.

Version: $Id: ResourceCacheImpl.java,v 1.2.8.1 2004/03/03 23:23:01 geirm Exp $

Author: Geir Magnusson Jr. Daniel Rall

Field Summary
protected Mapcache
Cache storage, assumed to be thread-safe.
protected RuntimeServicesrsvc
Runtime services, generally initialized by the initialize() method.
Method Summary
IteratorenumerateKeys()
Resourceget(Object key)
voidinitialize(RuntimeServices rs)
Resourceput(Object key, Resource value)
Resourceremove(Object key)

Field Detail

cache

protected Map cache
Cache storage, assumed to be thread-safe.

rsvc

protected RuntimeServices rsvc
Runtime services, generally initialized by the initialize() method.

Method Detail

enumerateKeys

public Iterator enumerateKeys()

get

public Resource get(Object key)

initialize

public void initialize(RuntimeServices rs)

put

public Resource put(Object key, Resource value)

remove

public Resource remove(Object key)
Copyright B) 2002 Apache Software Foundation. All Rights Reserved.