public class ImageObjectCacheImpl extends ImageObjectCache
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
LOG
logger
|
| Constructor and Description |
|---|
ImageObjectCacheImpl()
Default constructor with default settings.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache()
Clears the image cache (all ImageInfo and Image objects).
|
void |
doHouseKeeping()
Triggers some house-keeping, i.e. removes stale entries.
|
ImageObject |
getImage(String key)
Returns a cached image or null if not present.
|
boolean |
hasImage(String key)
Checks whether there is a cached image identified by the given key.
|
void |
putImage(String key,
ImageObject image)
Registers an image with the cache.
|
public ImageObjectCacheImpl()
public ImageObject getImage(String key)
getImage in class ImageObjectCachekey - the image's cache keypublic void putImage(String key, ImageObject image)
putImage in class ImageObjectCacheimage - the ImageObjectkey - the image's cache keypublic boolean hasImage(String key)
hasImage in class ImageObjectCachekey - the image's cache keypublic void clearCache()
public void doHouseKeeping()
Copyright © 2026 Apache Software Foundation. All rights reserved.