|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bankframe.services.cache.CacheFactory com.bankframe.services.cache.DefaultCacheFactoryImpl
This is a factory class that will create a
com.bankframe.services.cache.Cache
instance on demand
based on the properties specified in the BankframeResource.properties
file.
Constructor Summary | |
DefaultCacheFactoryImpl()
|
Method Summary | |
Cache |
createCacheImpl(java.lang.String cacheName)
This method creates a cache instance based on settings specified in the BankframeResource.properties file. |
Cache |
getCacheImpl(java.util.Map map,
java.lang.String cacheName)
Deprecated. Use getCacheImpl(String name) instead |
Cache |
getCacheImpl(java.lang.String cacheName)
This method gets an instance of a cache object. |
java.util.Map |
getCachesImpl()
|
void |
registerCacheImpl(java.lang.String cacheName,
Cache cache)
This registers a cache in the list of caches with the specified name |
void |
removeCacheImpl(java.lang.String cacheName)
This method removes the specified cache from the system and removes all entries in the cache. |
Methods inherited from class com.bankframe.services.cache.CacheFactory |
createCache, getCache, getCache, getCaches, getInstance, registerCache, removeCache |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultCacheFactoryImpl()
Method Detail |
public java.util.Map getCachesImpl()
public Cache createCacheImpl(java.lang.String cacheName)
cache.cacheName
where cacheName is the name
of the cache.
cacheName
-
public Cache getCacheImpl(java.lang.String cacheName)
cacheName
- the name of this cache. This is used to distinguish distributed
caches from each other.
public void registerCacheImpl(java.lang.String cacheName, Cache cache)
public void removeCacheImpl(java.lang.String cacheName)
cacheName
- public Cache getCacheImpl(java.util.Map map, java.lang.String cacheName)
cache.distributed
key in the BankFrameResource.properties
file to determine if the returned cache object is distributed
If the cache is distributed then the calling class should change the name
of the distribued cache to ensure that it does not join the default cache
map
- a Map object that is used as a persistent backingcacheName
- the name of this cache. This is used to distinguish distributed
caches from each other
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |