public interface ResourceCache
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all of the resources from this cache.
|
Iterator |
enumerateKeys()
returns an Iterator of Keys in the cache.
|
Resource |
get(Object resourceKey)
retrieves a Resource from the
cache
|
void |
initialize(RuntimeServices rs)
initializes the ResourceCache.
|
Resource |
put(Object resourceKey,
Resource resource)
stores a Resource in the cache
|
Resource |
remove(Object resourceKey)
removes a Resource from the cache
|
void initialize(RuntimeServices rs)
rs
- RuntimeServices to use for logging, etcResource get(Object resourceKey)
resourceKey
- key for Resource to be retrievedResource put(Object resourceKey, Resource resource)
resourceKey
- key to associate with the Resourceresource
- Resource to be storedResource remove(Object resourceKey)
resourceKey
- resource to be removedvoid clear()
Iterator enumerateKeys()
Copyright © 2000–2017 The Apache Software Foundation. All rights reserved.