public abstract class LateralCacheAbstractFactory extends java.lang.Object implements AuxiliaryCacheFactory
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 and Description |
|---|
LateralCacheAbstractFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract AuxiliaryCache |
createCache(AuxiliaryCacheAttributes attr,
ICompositeCacheManager cacheMgr,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
Creates a lateral cache.
|
abstract void |
createListener(ILateralCacheAttributes 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
|
public abstract AuxiliaryCache createCache(AuxiliaryCacheAttributes attr, ICompositeCacheManager cacheMgr, ICacheEventLogger cacheEventLogger, IElementSerializer elementSerializer)
createCache in interface AuxiliaryCacheFactoryattr - cacheMgr - cacheEventLogger - elementSerializer - public abstract void createListener(ILateralCacheAttributes lac, ICompositeCacheManager cacheMgr)
This should be called by create cache.
lac - ILateralCacheAttributescacheMgr - public java.lang.String getName()
getName in interface AuxiliaryCacheFactorypublic void setName(java.lang.String name)
setName in interface AuxiliaryCacheFactoryname - The new name valueCopyright © 2002-2013 Apache Software Foundation. All Rights Reserved.