|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.persist.cache.CacheRegistry
Registry for CacheFactory
implementations
obtained from the Castor properties file and used by the
JDO mapping configuration file.
Constructor Summary | |
CacheRegistry()
|
Method Summary | |
static Cache |
getCache(java.lang.String cacheType,
int capacity,
java.lang.String className,
java.lang.ClassLoader classLoader)
Returns a CacheFactory with the specified name. |
static java.lang.String[] |
getCacheFactories()
Returns the names of all the configured Cache instances as
a String array. |
static java.util.Collection |
getCaches()
Returns the names of all the configured Cache instances as a
Collection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CacheRegistry()
Method Detail |
public static Cache getCache(java.lang.String cacheType, int capacity, java.lang.String className, java.lang.ClassLoader classLoader) throws CacheAcquireException
CacheFactory
with the specified name.
The factory class names are loaded from the Castor properties
file. Returns null if the named factory is not supported.
cacheType
- Cache type identifiercapacity
- Cache capacity.className
- Class name.classLoader
- A ClassLoader instance.
Cache
instance, null if no cache type with this name exists.
CacheAcquireException
- A cache of the type specified can not be acquired.public static java.lang.String[] getCacheFactories()
Cache
instances as
a String array. The names can be used to obtain a Cache
from
getCache(java.lang.String, int, java.lang.String, java.lang.ClassLoader)
.
Cache
implementations.public static java.util.Collection getCaches()
Cache
instances as a
Collection. The names can be used to obtain a Cache
from
getCache(java.lang.String, int, java.lang.String, java.lang.ClassLoader)
.
Cache
implementations.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |