|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.castor.cache.AbstractCacheFactory
public abstract class AbstractCacheFactory
Base implementation of CacheFactory. Users interested in supplying their
own cache implementations might want to extend this class to provide their
own CacheFactory instance.
| Constructor Summary | |
|---|---|
AbstractCacheFactory()
|
|
| Method Summary | |
|---|---|
Cache |
getCache(java.lang.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.castor.cache.CacheFactory |
|---|
getCacheClassName, getCacheType |
| Constructor Detail |
|---|
public AbstractCacheFactory()
| Method Detail |
|---|
protected final boolean isInitialized()
true if cache factory has been initialized,
false otherwise.
public final Cache getCache(java.lang.ClassLoader classLoader)
throws CacheAcquireException
getCache in interface CacheFactoryclassLoader - A ClassLoader instance.
CacheAcquireException - Problem instantiating a cache instance.public void shutdown()
shutdown in interface CacheFactory
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||