org.exolab.castor.persist.cache
Interface CacheFactory

All Known Implementing Classes:
AbstractCacheFactory, CoherenceCacheFactory, CountLimitedFactory, FKCacheFactory, JCacheFactory, JcsCacheFactory, NoCacheFactory, TimeLimitedFactory, UnlimitedFactory

public interface CacheFactory

A factory for instantiating Cache implementations. To provide an implementation for a specific cache type, please implement this interface. When providing your own cache instance as explained in the JavaDocs for this package, please make sure that you provide valid values for the name and className properties.

Version:
$Id: CacheFactory.java,v 1.4 2005/08/04 07:31:15 wguttmn Exp $
Author:
Werner Guttmann

Method Summary
 Cache getCache(java.lang.ClassLoader classLoader)
          Instantiates an instance of the given class.
 java.lang.String getCacheClassName()
          Returns the full class name of the underlying cache implementation.
 java.lang.String getName()
          Returns the short alias for this factory instance.
 void shutdown()
          Allows for cache-specific shutdown operations and resource cleanup.
 

Method Detail

getCache

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

Parameters:
classLoader - A ClassLoader instance.
Returns:
A Cache instance.
Throws:
CacheAcquireException - Problem instantiating a cache instance.

getName

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

Returns:
The short alias name.

getCacheClassName

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

Returns:
The full cache class name.

shutdown

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



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