org.exolab.castor.persist.cache

Class AbstractCacheFactory

public abstract class AbstractCacheFactory extends Object implements CacheFactory

Base implementation of CacheFactory. Users interested in supplying their own cache implementations might want to extend this class to provide their own CacheFactory instance.

Author: Werner Guttmann

Method Summary
CachegetCache(ClassLoader classLoader)
Instantiates an instance of the given class.
abstract StringgetCacheClassName()
Returns the full class name of the underlying cache implementation.
abstract StringgetName()
Returns the short alias for this factory instance.

Method Detail

getCache

public Cache getCache(ClassLoader classLoader)
Instantiates an instance of the given class.

Parameters: classLoader A ClassLoader instance.

Returns: A Cache instance.

Throws: CacheAcquireException Problem instantiating a cache instance.

getCacheClassName

public abstract String getCacheClassName()
Returns the full class name of the underlying cache implementation.

Returns: The full cache class name.

getName

public abstract String getName()
Returns the short alias for this factory instance.

Returns: The short alias name.

Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com