commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From skitch...@apache.org
Subject cvs commit: jakarta-commons/digester/src/java/org/apache/commons/digester/plugins PluginRules.java
Date Wed, 16 Jun 2004 03:40:18 GMT
skitching    2004/06/15 20:40:18

  Modified:    digester/src/java/org/apache/commons/digester/plugins
                        PluginRules.java
  Log:
  Add digester as a constructor parameter. When using a factory to create
  the underlying rules object, we need a digester instance.
  
  Revision  Changes    Path
  1.19      +11 -3     jakarta-commons/digester/src/java/org/apache/commons/digester/plugins/PluginRules.java
  
  Index: PluginRules.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/digester/src/java/org/apache/commons/digester/plugins/PluginRules.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- PluginRules.java	11 Jun 2004 03:48:50 -0000	1.18
  +++ PluginRules.java	16 Jun 2004 03:40:18 -0000	1.19
  @@ -126,17 +126,25 @@
        * fires, in order to manage the custom rules associated with whatever 
        * concrete plugin class the user has specified.
        *
  +     * @param digester is the object this rules will be associated with.
        * @param mountPoint is the digester match path for the element 
        * matching a PluginCreateRule which caused this "nested parsing scope"
  -     * to begin.
  +     * to begin. This is expected to be equal to digester.getMatch().
        * @param parent must be non-null.
  +     * @param pluginClass is the plugin class whose custom rules will be
  +     * loaded into this new PluginRules object.
        */
  -     PluginRules(String mountPoint, PluginRules parent, Class pluginClass) 
  +     PluginRules(
  +     Digester digester, 
  +     String mountPoint, 
  +     PluginRules parent, 
  +     Class pluginClass) 
        throws PluginException {
           // no need to set digester or decoratedRules.digester,
           // because when Digester.setRules is called, the setDigester
           // method on this object will be called.
           
  +        this.digester = digester;
           this.mountPoint = mountPoint;
           this.parent = parent;
           this.rulesFactory = parent.rulesFactory;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message