You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sk...@apache.org on 2005/02/21 03:21:49 UTC
svn commit: r154609 -
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/plugins/strategies/LoaderSetProperties.java
Author: skitching
Date: Sun Feb 20 18:21:48 2005
New Revision: 154609
URL: http://svn.apache.org/viewcvs?view=rev&rev=154609
Log:
Change due to fact that PluginRuleManager no longer auto-prepends the
mount point to relative paths. Instead, we need to pass the full path
to the addRules method.
Modified:
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/plugins/strategies/LoaderSetProperties.java
Modified: jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/plugins/strategies/LoaderSetProperties.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/plugins/strategies/LoaderSetProperties.java?view=diff&r1=154608&r2=154609
==============================================================================
--- jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/plugins/strategies/LoaderSetProperties.java (original)
+++ jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/plugins/strategies/LoaderSetProperties.java Sun Feb 20 18:21:48 2005
@@ -26,7 +26,7 @@
import org.apache.commons.digester2.plugins.PluginException;
/**
- * A RuleLoader which creates a single SetPropertiesRule and adds it to the
+ * A RuleLoader which creates a single SetPropertiesAction and adds it to the
* digester when its addRules() method is invoked.
* <p>
* This loader ensures that any xml attributes on the plugin tag get
@@ -38,7 +38,7 @@
public class LoaderSetProperties extends RuleLoader {
/**
- * Just add a SetPropertiesRule at the specified path.
+ * Just add a SetPropertiesAction at the specified path.
*/
public void addRules(Context context)
throws PluginException {
@@ -53,7 +53,7 @@
}
try {
- context.getRuleManager().addRule(null, new SetPropertiesAction());
+ context.getRuleManager().addRule(path, new SetPropertiesAction());
} catch(InvalidRuleException ex) {
throw new PluginException(ex);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org