|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.components.modules.input.InputModuleHelper
public class InputModuleHelper
Field Summary | |
---|---|
protected static String |
INPUT_MODULE_SELECTOR
|
Constructor Summary | |
---|---|
InputModuleHelper()
|
Method Summary | |
---|---|
Object |
getAttribute(Map objectModel,
Configuration conf,
String module,
String name,
Object deflt)
Get a single attribute value from a module. |
Object |
getAttribute(Map objectModel,
String module,
String name,
Object deflt)
Get a single attribute value from a module. |
Iterator |
getAttributeNames(Map objectModel,
Configuration conf,
String module)
Get an iterator to a collection of attribute names from a module. |
Iterator |
getAttributeNames(Map objectModel,
String module)
Get an iterator to a collection of attribute names from a module. |
Object[] |
getAttributeValues(Map objectModel,
Configuration conf,
String module,
String name,
Object[] deflt)
Get an array of values from a module. |
Object[] |
getAttributeValues(Map objectModel,
String module,
String name,
Object[] deflt)
Get an array of values from a module. |
void |
releaseAll()
Releases all obtained module references. |
void |
setup(ComponentManager manager)
Deprecated. Use the setup(ServiceManager) method instead |
void |
setup(ServiceManager manager)
Initializes the instance for first use. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String INPUT_MODULE_SELECTOR
Constructor Detail |
---|
public InputModuleHelper()
Method Detail |
---|
public void setup(ComponentManager manager) throws RuntimeException
setup(ServiceManager)
method instead
manager
- a ComponentManager
value
RuntimeException
- if an error occurspublic void setup(ServiceManager manager) throws RuntimeException
manager
- a ServiceManager
value
RuntimeException
- if an error occurspublic Object getAttribute(Map objectModel, Configuration conf, String module, String name, Object deflt) throws RuntimeException
objectModel
- a Map
valueconf
- a Configuration
containing the module dynamic configuration (aka modeConf)module
- a String
value holding the module namename
- a String
value holding the attribute namedeflt
- an Object
value holding a default value
Object
value
RuntimeException
- if an error occurspublic Object getAttribute(Map objectModel, String module, String name, Object deflt) throws RuntimeException
getAttribute(Map, Configuration, String, String, Object)
with a
null
configuration.
RuntimeException
public Object[] getAttributeValues(Map objectModel, Configuration conf, String module, String name, Object[] deflt) throws RuntimeException
objectModel
- a Map
valueconf
- a Configuration
containing the module dynamic configuration (aka modeConf)module
- a String
value holding the module namename
- a String
value holding the attribute namedeflt
- an Object[]
value holding a default value
Object[]
value
RuntimeException
- if an error occurspublic Object[] getAttributeValues(Map objectModel, String module, String name, Object[] deflt) throws RuntimeException
getAttributeValues(Map, Configuration, String, String, Object[])
with a null
configuration.
RuntimeException
public Iterator getAttributeNames(Map objectModel, Configuration conf, String module) throws RuntimeException
objectModel
- a Map
valuemodule
- the module's name
Iterator
value
RuntimeException
- if an error occurspublic Iterator getAttributeNames(Map objectModel, String module) throws RuntimeException
getAttributeNames(Map, Configuration, String)
with a
null
configuration.
RuntimeException
public void releaseAll() throws RuntimeException
RuntimeException
- if an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |