org.exolab.castor.persist.cache
public final class CacheRegistry extends Object
Version: $Id: CacheRegistry.java,v 1.7 2005/08/04 07:31:15 wguttmn Exp $
Method Summary | |
---|---|
static Cache | getCache(String cacheType, int capacity, String className, ClassLoader classLoader)
Returns a CacheFactory with the specified name.
|
static Collection | getCacheFactories()
Returns a collection of the current configured cache factories. |
static String[] | getCacheFactoriesNames()
Returns the names of all the configured Cache instances as
a String array. |
static Collection | getCacheNames()
Returns the names of all the configured Cache instances as a
Collection. |
Parameters: cacheType Cache type identifier capacity Cache capacity. className Class name. classLoader A ClassLoader instance.
Returns: A Cache instance, null if no cache type with this name exists.
Throws: CacheAcquireException A cache of the type specified can not be acquired.
Returns: Collection of the current configured cache factories.
Returns: Names of the configured Cache implementations.
Returns: Names of the configured Cache implementations.