| org.apache.cocoon.components.modules.input.AbstractInputModule org.apache.cocoon.components.modules.input.AbstractMetaModule org.apache.cocoon.components.modules.input.ChainMetaModule
ChainMetaModule | public class ChainMetaModule extends AbstractMetaModule implements ThreadSafe(Code) | | This modules allows to "chain" several other modules. If a module
returns "null" as attribute value, the next module in the chain is
queried until either a value can be obtained or the end of the
chain is reached.
A typical example would be to "chain" request parameters,
session attributes, and constants in this order. This way, an
application could have a default skin that could be overridden by a
user in her/his profile stored in the session. In addition, the
user could request a different skin through passing a request
parameter.
Usage:
Any number of <input-module/> blocks may appear in the
component configuration. The @name attribute is used as the name of
the requested input module. The complete <input-module/>
block is passed at run-time to the module and thus can contain any
configuration data for that particular module.
Configuration:
It can be controlled whether it returns a flat or a deep view,
i.e. whether only values from the first module are returned if
non-null or they are merged with values from other modules
<all-values>true</all-values> . The same is
possible for the attribute names
(<all-names/> ). In addition, empty strings could
be treated the same as null values
(<empty-as-null/> ).
author: Christian Haul version: CVS $Id: ChainMetaModule.java 433543 2006-08-22 06:22:54Z crossley $ |
configure | public void configure(Configuration config) throws ConfigurationException(Code) | | |
dispose | public void dispose()(Code) | | |
getAttribute | public Object getAttribute(String attr, Configuration modeConf, Map objectModel) throws ConfigurationException(Code) | | |
getAttributeNames | public Iterator getAttributeNames(Configuration modeConf, Map objectModel) throws ConfigurationException(Code) | | |
getAttributeValues | public Object[] getAttributeValues(String attr, Configuration modeConf, Map objectModel) throws ConfigurationException(Code) | | |
lazy_initialize | public synchronized void lazy_initialize()(Code) | | |
Methods inherited from org.apache.cocoon.components.modules.input.AbstractMetaModule | public void compose(ComponentManager manager) throws ComponentException(Code)(Java Doc) public void dispose()(Code)(Java Doc) protected Iterator getNames(Map objectModel, InputModule staticMod, String staticModName, Configuration staticModConf) throws ConfigurationException(Code)(Java Doc) protected Iterator getNames(Map objectModel, InputModule staticMod, String staticModName, Configuration staticModConf, InputModule dynamicMod, String dynamicModName, Configuration dynamicModConf) throws ConfigurationException(Code)(Java Doc) protected Object getValue(String attr, Map objectModel, ModuleHolder holder) throws ConfigurationException(Code)(Java Doc) protected Object getValue(String attr, Map objectModel, ModuleHolder staticHolder, ModuleHolder dynamicHolder) throws ConfigurationException(Code)(Java Doc) protected Object getValue(String attr, Map objectModel, InputModule staticMod, String staticModName, Configuration staticModConf) throws ConfigurationException(Code)(Java Doc) protected Object getValue(String attr, Map objectModel, InputModule staticMod, String staticModName, Configuration staticModConf, InputModule dynamicMod, String dynamicModName, Configuration dynamicModConf) throws ConfigurationException(Code)(Java Doc) protected Object[] getValues(String attr, Map objectModel, ModuleHolder holder) throws ConfigurationException(Code)(Java Doc) protected Object[] getValues(String attr, Map objectModel, ModuleHolder staticHolder, ModuleHolder dynamicHolder) throws ConfigurationException(Code)(Java Doc) protected Object[] getValues(String attr, Map objectModel, InputModule staticMod, String staticModName, Configuration staticModConf) throws ConfigurationException(Code)(Java Doc) protected Object[] getValues(String attr, Map objectModel, InputModule staticMod, String staticModName, Configuration staticModConf, InputModule dynamicMod, String dynamicModName, Configuration dynamicModConf) throws ConfigurationException(Code)(Java Doc) public synchronized void lazy_initialize()(Code)(Java Doc) protected InputModule obtainModule(String type)(Code)(Java Doc) protected void releaseModule(InputModule module)(Code)(Java Doc)
|
|
|