org.castor.cache
Class AbstractCacheFactory

java.lang.Object
  extended by org.castor.cache.AbstractCacheFactory
All Implemented Interfaces:
CacheFactory
Direct Known Subclasses:
CoherenceCacheFactory, CountLimitedFactory, EHCacheFactory, FIFOHashbeltFactory, FKCacheFactory, GigaspacesCacheFactory, JCacheFactory, JcsCacheFactory, LRUHashbeltFactory, 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.

Since:
1.0
Version:
$Revision: 7950 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Author:
Werner Guttmann, Ralf Joachim

Constructor Summary
AbstractCacheFactory()
           
 
Method Summary
 Cache getCache(java.lang.ClassLoader classLoader)
          Instantiates an instance of the cache implementation this factory is responsible for using the given classloader.
 void shutdown()
          Allows for cache-specific shutdown operations and resource cleanup.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.castor.cache.CacheFactory
getCacheClassName, getCacheType
 

Constructor Detail

AbstractCacheFactory

public AbstractCacheFactory()
Method Detail

getCache

public final Cache getCache(java.lang.ClassLoader classLoader)
                     throws CacheAcquireException
Instantiates an instance of the cache implementation this factory is responsible for using the given classloader.

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

shutdown

public void shutdown()
Allows for cache-specific shutdown operations and resource cleanup.

Specified by:
shutdown in interface CacheFactory


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