public abstract class AbstractCacheFactory extends Object implements CacheFactory
CacheFactory
. Users interested in supplying their
own cache implementations might want to extend this class to provide their
own CacheFactory
instance.Constructor and Description |
---|
AbstractCacheFactory() |
Modifier and Type | Method and Description |
---|---|
Cache |
getCache(ClassLoader classLoader)
Instantiates an instance of the cache implementation this factory is responsible
for using the given classloader.
|
protected boolean |
isInitialized()
Has the cache factory been initialized?
|
void |
shutdown()
Allows for cache-specific shutdown operations and resource cleanup.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCacheClassName, getCacheType
protected final boolean isInitialized()
true
if cache factory has been initialized,
false
otherwise.public final Cache getCache(ClassLoader classLoader) throws CacheAcquireException
getCache
in interface CacheFactory
classLoader
- A ClassLoader instance.CacheAcquireException
- Problem instantiating a cache instance.public void shutdown()
shutdown
in interface CacheFactory
Copyright © 2016. All rights reserved.