|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bankframe.services.cache.CacheFactory
public abstract class CacheFactory
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(String cacheName)
This method creates a cache instance |
static Cache |
getCache(Map map,
String cacheName)
Deprecated. Use getCache(String cacheName) instead |
static Cache |
getCache(String cacheName)
This method gets an instance of a cache object. |
static Map |
getCaches()
Retrieves the caches map |
static CacheFactory |
getInstance()
This method returns the CacheFactory instance. |
static void |
registerCache(String cacheName,
Cache cache)
This registers a cache in the list of caches with the specified name |
static void |
removeCache(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 |
---|
public CacheFactory()
Method Detail |
---|
public static CacheFactory getInstance()
public static Map getCaches()
public static Cache getCache(String cacheName)
cacheName
-
public static Cache getCache(Map map, String cacheName)
map
- cacheName
-
public static Cache createCache(String cacheName)
cacheName
-
public static void registerCache(String cacheName, Cache cache)
cacheName
- cache
- public static void removeCache(String cacheName)
cacheName
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |