|
||||||||||
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 instanceName A 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 nameMethod Detail |
---|
public void init(java.lang.String strBase)
IChainManager
strBase
init
in interface IChainManager
strBase
- 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 mappublic 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 filtersprotected 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 foundpublic java.lang.Object callFilter(java.lang.String strInstanceName, java.io.Serializable key)
IChainManager
instanceName
filter/cache
callFilter
in interface IChainManager
strInstanceName
- 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)
IChainManager
instanceName
RuntimeException
will be throw if no cache/filter exist with
this name.
getFilter
in interface IChainManager
strInstanceName
- Name of the filter
IChainManager.getFilter(String)
public java.lang.String getPluginName()
IChainManager
getPluginName
in interface IChainManager
IChainManager.getPluginName()
public void emptyCaches()
emptyCaches
in interface IChainManager
public int getCachesSize()
getCachesSize
in interface IChainManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |