|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.cache.distributed.OsCacheFactory<K,V>
K - the type of keys maintained by this cacheV - the type of cached valuespublic final class OsCacheFactory<K,V>
Implements CacheFactory for the OsCache
implementation of Cache.
| Constructor Summary | |
|---|---|
OsCacheFactory()
|
|
| Method Summary | |
|---|---|
Cache<K,V> |
getCache(ClassLoader classLoader)
Instantiates an instance of the cache implementation this factory is responsible for using the given classloader. |
Cache<K,V> |
getCache(String implementation,
ClassLoader classLoader)
Normally called to initialize OsCache. |
String |
getCacheClassName()
Returns the full class name of the underlying cache implementation. |
String |
getCacheType()
Returns the short alias cache type for this factory instance. |
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 |
| Constructor Detail |
|---|
public OsCacheFactory()
| Method Detail |
|---|
public Cache<K,V> getCache(ClassLoader classLoader)
throws CacheAcquireException
getCache in interface CacheFactory<K,V>classLoader - A ClassLoader instance.
CacheAcquireException - Problem instantiating a cache instance.
public Cache<K,V> getCache(String implementation,
ClassLoader classLoader)
throws CacheAcquireException
com.opensymphony.oscache.general.GeneralCacheAdministrator
implementation, it can also be called with a test implementations classname.
implementation - Cache implementation classname to initialize.classLoader - A ClassLoader instance.
CacheAcquireException - Problem instantiating a cache instance.public String getCacheType()
getCacheType in interface CacheFactory<K,V>public String getCacheClassName()
getCacheClassName in interface CacheFactory<K,V>public void shutdown()
shutdown in interface CacheFactory<K,V>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||