com.bankframe.services.cache
Class CacheFactory

java.lang.Object
  extended bycom.bankframe.services.cache.CacheFactory
Direct Known Subclasses:
DefaultCacheFactoryImpl, ThreadCleanedCacheFactoryImpl

public abstract class CacheFactory
extends java.lang.Object

This class is used to create a new instance of the CacheFactory implementation specified by the mca.services.cache.factoryClass setting in BankframeResource.properties file.


Constructor Summary
CacheFactory()
           
 
Method Summary
static Cache createCache(java.lang.String cacheName)
          This method creates a cache instance
static Cache getCache(java.util.Map map, java.lang.String cacheName)
          Deprecated. Use getCache(String cacheName) instead
static Cache getCache(java.lang.String cacheName)
          This method gets an instance of a cache object.
static java.util.Map getCaches()
          Retrieves the caches map
static CacheFactory getInstance()
          This method returns the CacheFactory instance.
static void registerCache(java.lang.String cacheName, Cache cache)
          This registers a cache in the list of caches with the specified name
static void removeCache(java.lang.String cacheName)
          This method removes the specified cache from the system and removes all entries in the cache.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheFactory

public CacheFactory()
Method Detail

getInstance

public static CacheFactory getInstance()
This method returns the CacheFactory instance.

Returns:
CacheFactory

getCaches

public static java.util.Map getCaches()
Retrieves the caches map

Returns:
Map

getCache

public static Cache getCache(java.lang.String cacheName)
This method gets an instance of a cache object.

Parameters:
cacheName -
Returns:
Cache

getCache

public static Cache getCache(java.util.Map map,
                             java.lang.String cacheName)
Deprecated. Use getCache(String cacheName) instead

This method gets an instance of a cache backed by a given persistent map.

Parameters:
map -
cacheName -
Returns:
Cache

createCache

public static Cache createCache(java.lang.String cacheName)
This method creates a cache instance

Parameters:
cacheName -
Returns:
Cache

registerCache

public static void registerCache(java.lang.String cacheName,
                                 Cache cache)
This registers a cache in the list of caches with the specified name

Parameters:
cacheName -
cache -

removeCache

public static void removeCache(java.lang.String cacheName)
This method removes the specified cache from the system and removes all entries in the cache.

Parameters:
cacheName -


Copyright © 2005, 2007, Oracle. All rights reserved.