|
||||||||||
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.ContextChainManagerImpl
public class ContextChainManagerImpl
The default context cache filter associated with ContextChainManagerImpl
ChainManagerImpl
Constructor Summary | |
---|---|
ContextChainManagerImpl(IChainManager filterManager,
java.lang.String strFilterName,
java.lang.String strNextFilter,
java.io.Serializable initialKey)
Public constructor |
Method Summary | |
---|---|
java.lang.Object |
callFilter(java.lang.String strInstanceName,
java.io.Serializable key)
Call the instanceName filter/cache |
java.lang.Object |
callNextFilter(java.io.Serializable key,
java.lang.Object element)
Call the next filter in chain |
void |
emptyCaches()
Finds all the caches and flush them |
int |
getCachesSize()
get the sum of all cache sizes |
java.lang.String |
getCurrentFilterName()
Return the name of the current filter |
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.io.Serializable |
getIntialKey()
Return the intial Key |
java.lang.String |
getNextFilterName()
Return the name of the next filter |
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 ContextChainManagerImpl(IChainManager filterManager, java.lang.String strFilterName, java.lang.String strNextFilter, java.io.Serializable initialKey)
filterManager
- the filter managerstrFilterName
- the filter namestrNextFilter
- the next filter in the chaininitialKey
- the innitial keyMethod Detail |
---|
public void init(java.lang.String strBase)
IChainManager
strBase
init
in interface IChainManager
strBase
- The prefix of params to searchIChainManager.init(String)
public 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(String, 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.Object callNextFilter(java.io.Serializable key, java.lang.Object element)
IContextChainManager
callNextFilter
in interface IContextChainManager
key
- The key of the elementelement
- The element to filter or null
if search in cache is needed
IContextChainManager.callNextFilter(Serializable, Object)
public java.lang.String getPluginName()
IChainManager
getPluginName
in interface IChainManager
IChainManager.getPluginName()
public java.lang.String getCurrentFilterName()
IContextChainManager
getCurrentFilterName
in interface IContextChainManager
IContextChainManager.getCurrentFilterName()
public java.lang.String getNextFilterName()
IContextChainManager
getNextFilterName
in interface IContextChainManager
IContextChainManager.getNextFilterName()
public java.io.Serializable getIntialKey()
IContextChainManager
getIntialKey
in interface IContextChainManager
IContextChainManager.getIntialKey()
public void emptyCaches()
IChainManager
emptyCaches
in interface IChainManager
IChainManager.emptyCaches()
public int getCachesSize()
IChainManager
getCachesSize
in interface IChainManager
IChainManager.getCachesSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |