CacheFactory
public final class OsCacheFactory extends java.lang.Object implements CacheFactory
Constructor | Description |
---|---|
OsCacheFactory() |
Modifier and Type | Method | Description |
---|---|---|
Cache |
getCache(java.lang.ClassLoader classLoader) |
Instantiates an instance of the cache implementation this factory is responsible
for using the given classloader.
|
Cache |
getCache(java.lang.String implementation,
java.lang.ClassLoader classLoader) |
Normally called to initialize OsCache.
|
java.lang.String |
getCacheClassName() |
Returns the full class name of the underlying cache implementation.
|
java.lang.String |
getCacheType() |
Returns the short alias cache type for this factory instance.
|
void |
shutdown() |
Allows for cache-specific shutdown operations and resource cleanup.
|
public Cache getCache(java.lang.ClassLoader classLoader) throws CacheAcquireException
getCache
in interface CacheFactory
classLoader
- A ClassLoader instance.CacheAcquireException
- Problem instantiating a cache instance.public Cache getCache(java.lang.String implementation, java.lang.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 java.lang.String getCacheType()
getCacheType
in interface CacheFactory
public java.lang.String getCacheClassName()
getCacheClassName
in interface CacheFactory
public void shutdown()
shutdown
in interface CacheFactory
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com