|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.rhi.architecture.cache.simple.SimpleCacheFactory
CacheFactory class manages caching creation/retrieval of specific cache mgr. This class uses simple HashMap to store cacheable objects. It is a resource class hence has it will be registered into the the ResourceContext and in the init method it initilizes all the CacheManagers and its respective caches.
Field Summary |
Fields inherited from interface com.rhi.architecture.cache.CacheFactory |
KEY |
Constructor Summary | |
SimpleCacheFactory()
Constructor |
Method Summary | |
void |
close()
As part of Resource object it cleans up the CacheManagers which inturn will make cached data garbage collected. |
CacheManager |
getManager(java.lang.Object className)
Retrieves the CacheManager that is specific to the className object. |
void |
init(java.util.Properties p)
This init method will be called while Resources are being registered and initilised. |
protected static Logger |
log()
convenience method to retrieve logger. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleCacheFactory()
Method Detail |
protected static Logger log()
public void init(java.util.Properties p) throws InitializationException
init
in interface Resource
p
-
InitializationException
public CacheManager getManager(java.lang.Object className)
getManager
in interface CacheFactory
className
-
public void close()
close
in interface Resource
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |