org.castor.cache.distributed

Class OsCacheFactory

public final class OsCacheFactory extends Object implements CacheFactory

Implements CacheFactory for the OsCache implementation of Cache.

Since: 1.0

Version: $Revision: 6230 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $

Author: Werner Guttmann Ralf Joachim

Method Summary
CachegetCache(ClassLoader classLoader)
CachegetCache(String implementation, ClassLoader classLoader)
Normally called to initialize OsCache.
StringgetCacheClassName()
StringgetCacheType()
voidshutdown()

Method Detail

getCache

public Cache getCache(ClassLoader classLoader)
{@inheritDoc }

See Also: CacheFactory

getCache

public Cache getCache(String implementation, ClassLoader classLoader)
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()
{@inheritDoc }

See Also: getCacheClassName

getCacheType

public String getCacheType()
{@inheritDoc }

See Also: getCacheType

shutdown

public void shutdown()
{@inheritDoc }

See Also: shutdown

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