org.castor.cache.distributed

Class OsCacheFactory

Implemented Interfaces:
CacheFactory

public final class OsCacheFactory
extends java.lang.Object
implements CacheFactory

Implements CacheFactory for the OsCache implementation of Cache.
Version:
$Revision: 6230 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Authors:
Werner Guttmann
Ralf Joachim
Since:
1.0

Method Summary

Cache
getCache(ClassLoader classLoader)
Cache
getCache(String implementation, ClassLoader classLoader)
Normally called to initialize OsCache.
String
getCacheClassName()
String
getCacheType()
void
shutdown()

Method Details

getCache

public Cache getCache(ClassLoader classLoader)
            throws CacheAcquireException
Specified by:
getCache in interface CacheFactory
See Also:
org.castor.cache.CacheFactory.getCache(java.lang.ClassLoader)

getCache

public Cache getCache(String implementation,
                      ClassLoader classLoader)
            throws CacheAcquireException
Normally called to initialize OsCache. To be able to test the method without having com.opensymphony.oscache.general.GeneralCacheAdministrator implementation, it can also be called with a test implementations classname.
Parameters:
implementation - Cache implementation classname to initialize.
classLoader - A ClassLoader instance.
Returns:
A Cache instance.
Throws:
CacheAcquireException - Problem instantiating a cache instance.

getCacheClassName

public String getCacheClassName()
Specified by:
getCacheClassName in interface CacheFactory

getCacheType

public String getCacheType()
Specified by:
getCacheType in interface CacheFactory

shutdown

public void shutdown()
Specified by:
shutdown in interface CacheFactory

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