|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.cocoon.components.modules.input.AbstractInputModule org.apache.cocoon.components.modules.input.AbstractMetaModule
public abstract class AbstractMetaModule
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().
Field Summary | |
---|---|
protected String |
defaultInput
The default InputModule name / shorthand. |
protected boolean |
initialized
Is this instance initialized? |
protected InputModule |
input
The cached default InputModule |
protected static String |
INPUT_MODULE_SELECTOR
|
protected Configuration |
inputConf
The default InputModule configuration |
protected ComponentSelector |
inputSelector
The cached InputModule-Selector |
protected ComponentManager |
manager
The component manager instance |
Fields inherited from class org.apache.cocoon.components.modules.input.AbstractInputModule |
---|
settings |
Fields inherited from interface org.apache.cocoon.components.modules.input.InputModule |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractMetaModule()
|
Method Summary | |
---|---|
void |
compose(ComponentManager manager)
Set the current ComponentManager instance used by this
Composable . |
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,
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 |
getValue(String attr,
Map objectModel,
ModuleHolder holder)
|
protected Object |
getValue(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). |
protected Object[] |
getValues(String attr,
Map objectModel,
ModuleHolder holder)
|
protected Object[] |
getValues(String attr,
Map objectModel,
ModuleHolder staticHolder,
ModuleHolder dynamicHolder)
|
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. |
Methods inherited from class org.apache.cocoon.components.modules.input.AbstractInputModule |
---|
configure, getAttribute, getAttributeNames, getAttributeValues |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ComponentManager manager
protected ComponentSelector inputSelector
protected InputModule input
protected String defaultInput
protected Configuration inputConf
protected boolean initialized
protected static final String INPUT_MODULE_SELECTOR
Constructor Detail |
---|
public AbstractMetaModule()
Method Detail |
---|
public void compose(ComponentManager manager) throws ComponentException
ComponentManager
instance used by this
Composable
.
compose
in interface Composable
ComponentException
public void lazy_initialize()
public void dispose()
dispose
in interface Disposable
dispose
in class AbstractInputModule
protected InputModule obtainModule(String type)
protected void releaseModule(InputModule module)
protected Iterator getNames(Map objectModel, InputModule staticMod, String staticModName, Configuration staticModConf) throws ConfigurationException
ConfigurationException
InputModule.getAttributeNames(Configuration, Map)
protected Iterator getNames(Map objectModel, InputModule staticMod, String staticModName, Configuration staticModConf, InputModule dynamicMod, String dynamicModName, Configuration dynamicModConf) throws ConfigurationException
null
.
ConfigurationException
InputModule.getAttributeNames(Configuration, Map)
protected Object getValue(String attr, Map objectModel, ModuleHolder holder) throws ConfigurationException
ConfigurationException
protected Object getValue(String attr, Map objectModel, ModuleHolder staticHolder, ModuleHolder dynamicHolder) throws ConfigurationException
ConfigurationException
protected Object[] getValues(String attr, Map objectModel, ModuleHolder holder) throws ConfigurationException
ConfigurationException
protected Object[] getValues(String attr, Map objectModel, ModuleHolder staticHolder, ModuleHolder dynamicHolder) throws ConfigurationException
ConfigurationException
protected Object getValue(String attr, Map objectModel, InputModule staticMod, String staticModName, Configuration staticModConf) throws ConfigurationException
ConfigurationException
InputModule.getAttribute(String, Configuration, Map)
protected Object getValue(String attr, Map objectModel, InputModule staticMod, String staticModName, Configuration staticModConf, InputModule dynamicMod, String dynamicModName, Configuration dynamicModConf) throws ConfigurationException
null
.
ConfigurationException
InputModule.getAttribute(String, Configuration, Map)
protected Object[] getValues(String attr, Map objectModel, InputModule staticMod, String staticModName, Configuration staticModConf) throws ConfigurationException
ConfigurationException
InputModule.getAttributeValues(String, Configuration, Map)
protected Object[] getValues(String attr, Map objectModel, InputModule staticMod, String staticModName, Configuration staticModConf, InputModule dynamicMod, String dynamicModName, Configuration dynamicModConf) throws ConfigurationException
null
.
ConfigurationException
InputModule.getAttributeValues(String, Configuration, Map)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |