Save This Page
Home » commons-chain-1.2-src » org.apache.commons » chain » config » [javadoc | source]
org.apache.commons.chain.config
class: ConfigCatalogRule [javadoc | source]
java.lang.Object
   org.apache.commons.digester.Rule
      org.apache.commons.chain.config.ConfigCatalogRule

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.

Constructor:
 public ConfigCatalogRule(String nameAttribute,
    String catalogClass) 

    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 under which this command should be registered
    catalogClass - Name of the implementation class for newly created Catalog instances
Method from org.apache.commons.chain.config.ConfigCatalogRule Summary:
begin
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.chain.config.ConfigCatalogRule Detail:
 public  void begin(String namespace,
    String name,
    Attributes attributes) throws Exception 

    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.