|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.persist.cache.CacheRegistry
public final class CacheRegistry
Registry for CacheFactory
implementations
obtained from the Castor properties file and used by the
JDO mapping configuration file.
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.util.Collection |
getCacheFactories()
Returns a collection of the current configured cache factories. |
static java.lang.String[] |
getCacheFactoriesNames()
Returns the names of all the configured Cache instances as
a String array. |
static java.util.Collection |
getCacheNames()
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 |
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[] getCacheFactoriesNames()
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 getCacheFactories()
public static java.util.Collection getCacheNames()
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 |