Interface ResourceCache
- All Known Implementing Classes:
ResourceCacheImpl
public interface ResourceCache
Interface that defines the shape of a pluggable resource cache
for the included ResourceManager
- Version:
- $Id$
- Author:
- Geir Magnusson Jr.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Removes all of the resources from this cache.returns an Iterator of Keys in the cache.retrieves a Resource from the cachevoidinitializes the ResourceCache.stores a Resource in the cacheremoves a Resource from the cache
-
Method Details
-
initialize
initializes the ResourceCache. Will be called before any utilization- Parameters:
rs- RuntimeServices to use for logging, etc
-
get
-
put
-
remove
-
clear
void clear()Removes all of the resources from this cache. The cache will be empty after this call returns.- Since:
- 2.0
-
enumerateKeys
Iterator enumerateKeys()returns an Iterator of Keys in the cache.- Returns:
- An Iterator of Keys in the cache.
-