| org.apache.commons.chain.config.ConfigCatalogRule
ConfigCatalogRule | class ConfigCatalogRule extends Rule (Code) | | Digester rule that will cause the top-most element on the Digester
stack (if it is a
Catalog to be registered with the
CatalogFactory instance for our application. If the attribute
specified to our constructor has a value, that will be used as the name
under which to register this
Catalog . Otherwise, this will
become the default
Catalog for this application.
author: Craig R. McClanahan version: $Revision: 155403 $ $Date: 2005-02-26 12:52:46 +0000 (Sat, 26 Feb 2005) $ |
Method Summary | |
public void | begin(String namespace, String name, Attributes attributes) Retrieve or create a
Catalog with the name specified by
the nameAttribute attribute, or the default
Catalog if there is no such attribute defined. |
ConfigCatalogRule | public ConfigCatalogRule(String nameAttribute, String catalogClass)(Code) | | Construct a new instance of this rule that looks for an attribute
with the specified name.
Parameters: nameAttribute - Name of the attribute containing the name underwhich this command should be registered Parameters: catalogClass - Name of the implementation class for newlycreated Catalog instances |
begin | public void begin(String namespace, String name, Attributes attributes) throws Exception(Code) | | Retrieve or create a
Catalog with the name specified by
the nameAttribute attribute, or the default
Catalog if there is no such attribute defined. Push it onto the top of the
stack.
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 |
|
|