|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.comarquage.util.cache.genericimpl.ChainManagerImpl
public class ChainManagerImpl
The main default cache/filter manager
| Constructor Summary | |
|---|---|
ChainManagerImpl(java.lang.String strPluginName)
Public constructor |
|
| Method Summary | |
|---|---|
void |
addFilter(java.lang.String strInstanceName,
IChainNode filter)
Add filter to map |
void |
addFilter(java.lang.String strInstanceName,
IChainNode filter,
java.lang.String strNextFilter)
Add filter and next filter to maps |
java.lang.Object |
callFilter(java.lang.String strInstanceName,
java.io.Serializable key)
Call the instanceName filter/cache |
protected java.lang.Object |
callFilter(java.lang.String strInstanceName,
java.io.Serializable key,
java.lang.Object element)
Call a filter |
void |
emptyCaches()
Finds all the caches and flush them |
int |
getCachesSize()
get the sum of all cache sizes |
IChainNode |
getFilter(java.lang.String strInstanceName)
Return the filter named instanceNameA RuntimeException will be throw if no cache/filter exist with
this name. |
java.lang.String |
getPluginName()
Return the plugin name which the filter is associated |
void |
init(java.lang.String strBase)
Init the instance with params based on prefix strBase |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChainManagerImpl(java.lang.String strPluginName)
strPluginName - the plugin name| Method Detail |
|---|
public void init(java.lang.String strBase)
IChainManagerstrBase
init in interface IChainManagerstrBase - The prefix of params to searchIChainManager.init(String)
public void addFilter(java.lang.String strInstanceName,
IChainNode filter)
strInstanceName - the name of the concerned instancefilter - the filter to add to the map
public void addFilter(java.lang.String strInstanceName,
IChainNode filter,
java.lang.String strNextFilter)
strInstanceName - the name of the concerned instancefilter - the filter to add to the map of filtersstrNextFilter - the name of the filter to add to the map of next filters
protected java.lang.Object callFilter(java.lang.String strInstanceName,
java.io.Serializable key,
java.lang.Object element)
strInstanceName - the name of the concerned instancekey - The unique key of objectelement - The element to work
null if no object found
public java.lang.Object callFilter(java.lang.String strInstanceName,
java.io.Serializable key)
IChainManagerinstanceName filter/cache
callFilter in interface IChainManagerstrInstanceName - Name of the filterkey - Key of the object
null if no object foundIChainManager.callFilter(java.lang.String, java.io.Serializable)public IChainNode getFilter(java.lang.String strInstanceName)
IChainManagerinstanceNameRuntimeException will be throw if no cache/filter exist with
this name.
getFilter in interface IChainManagerstrInstanceName - Name of the filter
IChainManager.getFilter(String)public java.lang.String getPluginName()
IChainManager
getPluginName in interface IChainManagerIChainManager.getPluginName()public void emptyCaches()
emptyCaches in interface IChainManagerpublic int getCachesSize()
getCachesSize in interface IChainManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||