|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.auxiliary.lateral.LateralCacheAbstractFactory
Particular lateral caches should define their own factory. It is not necessary to extend this base factory, but it can be useful.
The old factory tried to handle all types of laterals. It was gettting cluttered by ad hoc if statements. Since the javagroups lateral was jdk1.4 dependent it had to be moved. As such, the old factory could no longer import it. This motivated the change.
This abstraction layer should keep things cleaner.
Constructor Summary | |
LateralCacheAbstractFactory()
|
Method Summary | |
abstract AuxiliaryCache |
createCache(AuxiliaryCacheAttributes attr,
ICompositeCacheManager cacheMgr)
|
abstract void |
createListener(LateralCacheAttributes lac,
ICompositeCacheManager cacheMgr)
Makes sure a listener gets created. |
java.lang.String |
getName()
Gets the name attribute of the LateralCacheFactory object |
void |
setName(java.lang.String name)
Sets the name attribute of the LateralCacheFactory object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LateralCacheAbstractFactory()
Method Detail |
public abstract AuxiliaryCache createCache(AuxiliaryCacheAttributes attr, ICompositeCacheManager cacheMgr)
createCache
in interface AuxiliaryCacheFactory
attr
- cacheMgr
- This allows auxiliaries to reference the manager without
assuming that it is a singleton. This will allow JCS to be a
nonsingleton. Also, it makes it easier to test.
public abstract void createListener(LateralCacheAttributes lac, ICompositeCacheManager cacheMgr)
This should be called by create cache.
lac
- LateralCacheAttributescacheMgr
- public java.lang.String getName()
getName
in interface AuxiliaryCacheFactory
public void setName(java.lang.String name)
setName
in interface AuxiliaryCacheFactory
name
- The new name value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |