org.castor.cache
Interface CacheFactory
- AbstractCacheFactory, CoherenceCacheFactory, CountLimitedFactory, EHCacheFactory, FIFOHashbeltFactory, FKCacheFactory, GigaspacesCacheFactory, JcsCacheFactory, JCacheFactory, LRUHashbeltFactory, NoCacheFactory, OsCacheFactory, 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.
$Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $ Cache | getCache(ClassLoader classLoader) - Instantiates an instance of the cache implementation this factory is responsible
for using the given classloader.
|
String | getCacheClassName() - Returns the full class name of the underlying cache implementation.
|
String | getCacheType() - Returns the short alias cache type for this factory instance.
|
void | shutdown() - Allows for cache-specific shutdown operations and resource cleanup.
|
getCache
public Cache getCache(ClassLoader classLoader)
throws CacheAcquireException
Instantiates an instance of the cache implementation this factory is responsible
for using the given classloader.
classLoader
- A ClassLoader instance.
getCacheClassName
public String getCacheClassName()
Returns the full class name of the underlying cache implementation.
- The full cache class name.
getCacheType
public String getCacheType()
Returns the short alias cache type for this factory instance.
- The short alias cache type.
shutdown
public void shutdown()
Allows for cache-specific shutdown operations and resource cleanup.
Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com