org.exolab.castor.persist.cache
Class AbstractCacheFactory

java.lang.Object
  extended by org.exolab.castor.persist.cache.AbstractCacheFactory
All Implemented Interfaces:
CacheFactory
Direct Known Subclasses:
CoherenceCacheFactory, CountLimitedFactory, FKCacheFactory, JCacheFactory, JcsCacheFactory, NoCacheFactory, TimeLimitedFactory, UnlimitedFactory

public abstract class AbstractCacheFactory
extends java.lang.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

Constructor Summary
AbstractCacheFactory()
           
 
Method Summary
 Cache getCache(java.lang.ClassLoader classLoader)
          Instantiates an instance of the given class.
abstract  java.lang.String getCacheClassName()
          Returns the full class name of the underlying cache implementation.
abstract  java.lang.String getName()
          Returns the short alias for this factory instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.exolab.castor.persist.cache.CacheFactory
shutdown
 

Constructor Detail

AbstractCacheFactory

public AbstractCacheFactory()
Method Detail

getCache

public Cache getCache(java.lang.ClassLoader classLoader)
               throws CacheAcquireException
Instantiates an instance of the given class.

Specified by:
getCache in interface CacheFactory
Parameters:
classLoader - A ClassLoader instance.
Returns:
A Cache instance.
Throws:
CacheAcquireException - Problem instantiating a cache instance.

getName

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

Specified by:
getName in interface CacheFactory
Returns:
The short alias name.

getCacheClassName

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

Specified by:
getCacheClassName in interface CacheFactory
Returns:
The full cache class name.


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