| org.apache.cocoon.components.modules.input.AbstractInputModule org.apache.cocoon.components.modules.input.AbstractMetaModule
All known Subclasses: org.apache.cocoon.components.modules.input.DigestMetaModule, org.apache.cocoon.components.modules.input.JXPathMetaModule, org.apache.cocoon.components.modules.input.XMLMetaModule, org.apache.cocoon.components.modules.input.MapMetaModule, org.apache.cocoon.components.modules.input.CollectionMetaModule, org.apache.cocoon.components.modules.input.SelectMetaInputModule, org.apache.cocoon.components.modules.input.SimpleMappingMetaModule, org.apache.cocoon.components.modules.input.DateMetaInputModule, org.apache.cocoon.components.modules.input.ChainMetaModule,
AbstractMetaModule | abstract public class AbstractMetaModule extends AbstractInputModule implements Composable(Code) | | AbstractMetaModule gives you the infrastructure for easily
deploying more "meta" InputModules i.e. InputModules that are
composed of other InputModules. In order to get at the Logger, use
getLogger().
author: Christian Haul author: Jeff Turner version: CVS $Id: AbstractMetaModule.java 433543 2006-08-22 06:22:54Z crossley $ |
Method Summary | |
public void | compose(ComponentManager manager) Set the current ComponentManager instance used by this
Composable . | public void | dispose() Dispose exactly one cached InputModule. | protected Iterator | getNames(Map objectModel, InputModule staticMod, String staticModName, Configuration staticModConf) Get names of available attributes in the specified (usually statically
assigned) Input Module. | protected Iterator | getNames(Map objectModel, InputModule staticMod, String staticModName, Configuration staticModConf, InputModule dynamicMod, String dynamicModName, Configuration dynamicModConf) Get names of available attributes in one of the specified Input Modules
(static or dynamic, dynamic preferred). | protected Object | getValue(String attr, Map objectModel, ModuleHolder holder) | protected Object | getValue(String attr, Map objectModel, ModuleHolder staticHolder, ModuleHolder dynamicHolder) | protected Object | getValue(String attr, Map objectModel, InputModule staticMod, String staticModName, Configuration staticModConf) Get an attribute's value from a (usually statically assigned) Input
Module. | protected Object | getValue(String attr, Map objectModel, InputModule staticMod, String staticModName, Configuration staticModConf, InputModule dynamicMod, String dynamicModName, Configuration dynamicModConf) Get attribute's value in one of the specified Input Modules
(static or dynamic, dynamic preferred). | protected Object[] | getValues(String attr, Map objectModel, ModuleHolder holder) | protected Object[] | getValues(String attr, Map objectModel, ModuleHolder staticHolder, ModuleHolder dynamicHolder) | protected Object[] | getValues(String attr, Map objectModel, InputModule staticMod, String staticModName, Configuration staticModConf) Get an attribute's values from a (usually statically assigned) Input
Module. | protected Object[] | getValues(String attr, Map objectModel, InputModule staticMod, String staticModName, Configuration staticModConf, InputModule dynamicMod, String dynamicModName, Configuration dynamicModConf) Get attribute's values in one of the specified Input Modules
(static or dynamic, dynamic preferred). | public synchronized void | lazy_initialize() Initialize the meta module with exactly one other input
module. | protected InputModule | obtainModule(String type) Obtain a permanent reference to an InputModule. | protected void | releaseModule(InputModule module) release a permanent reference to an InputModule. |
INPUT_MODULE_SELECTOR | final protected static String INPUT_MODULE_SELECTOR(Code) | | |
defaultInput | protected String defaultInput(Code) | | The default InputModule name / shorthand. Defaults to 'request-param'
|
initialized | protected boolean initialized(Code) | | Is this instance initialized?
|
inputConf | protected Configuration inputConf(Code) | | The default InputModule configuration
|
inputSelector | protected ComponentSelector inputSelector(Code) | | The cached InputModule-Selector
|
manager | protected ComponentManager manager(Code) | | The component manager instance
|
compose | public void compose(ComponentManager manager) throws ComponentException(Code) | | Set the current ComponentManager instance used by this
Composable .
|
dispose | public void dispose()(Code) | | Dispose exactly one cached InputModule. To work on more than
one, override this method and initialize().
|
lazy_initialize | public synchronized void lazy_initialize()(Code) | | Initialize the meta module with exactly one other input
module. Since "meta" modules require references to components
of the same role, initialization cannot be done in initialize()
when also implementing ThreadSafe since at that point the
component selector is not yet initialized it would trigger the
creation of a new one resulting in an endless loop of
initializations. Therefore, every module needs to call this
method when it first requires access to another module if the
module itself has not been initialized. Override this method
and dispose() to keep references to more than one module.
|
releaseModule | protected void releaseModule(InputModule module)(Code) | | release a permanent reference to an InputModule.
|
|
|