| org.apache.commons.chain.config.ConfigDefineRule
ConfigDefineRule | class ConfigDefineRule extends Rule (Code) | | Digester rule that will dynamically register a new set of rules
for a specified element name and default implementation class. This
allows "alias" elements to be created for
Chain and
Command implementation classes that are commonly used. Besides factoring out
the class names to make changes easier, this also makes configuration
files much easier to read and write.
version: $Revision: 155403 $ $Date: 2005-02-26 12:52:46 +0000 (Sat, 26 Feb 2005) $ |
ConfigDefineRule | public ConfigDefineRule(String nameAttribute, String classAttribute)(Code) | | Construct a new instance of this rule that will in turn
dynamically register appropriate rules for a new alias element.
Parameters: nameAttribute - Name of the attribute containing the nameof the new element for which rules should generated Parameters: classAttribute - Name of the attribute containing theimplementation class for the new chain or command |
begin | public void begin(String namespace, String name, Attributes attributes) throws Exception(Code) | | Register new rules for the specified name and class.
Parameters: namespace - the namespace URI of the matching element, or anempty string if the parser is not namespace aware or the element hasno namespace Parameters: name - the local name if the parser is namespace aware, or justthe element name otherwise Parameters: attributes - The attribute list of this element |
|
|