Author: skitching Date: Wed Feb 23 19:17:09 2005 New Revision: 155149 URL: http://svn.apache.org/viewcvs?view=rev&rev=155149 Log: Remove functionality to auto-insert mountpoint prefix, as this makes it very awkward to add custom rules that are associated with the mountpoint; what pattern would be used?
Modified: jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/plugins/PluginRuleManager.java Modified: jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/plugins/PluginRuleManager.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/plugins/PluginRuleManager.java?view=diff&r1=155148&r2=155149 ============================================================================== --- jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/plugins/PluginRuleManager.java (original) +++ jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/plugins/PluginRuleManager.java Wed Feb 23 19:17:09 2005 @@ -210,16 +210,6 @@ /** * Add a custom rule. * <p> - * If the pattern starts with a forward-slash then the current mountpoint - * is automatically prepended to the pattern so that custom rules can add - * absolute patterns without caring where they are mounted within the - * input document. - * <p> - * If the pattern is null, then the pattern is set to the current mountpoint, - * so that actions can be triggered on the same element which caused the - * plugin class to be created, without needing to know the mountpoint - * from the code that adds the custom rule. - * <p> * Note that this does hard-wire an assumption that the concrete * RuleManager this instance is delegating to accepts the "canonical path" * as a valid pattern prefix, and treats paths starting with a leading @@ -229,11 +219,6 @@ */ public void addRule(String pattern, Action action) throws InvalidRuleException { - if (pattern == null) { - pattern = mountPoint; - } else if (pattern.startsWith("/")) { - pattern = mountPoint + pattern; - } delegateRuleManager.addRule(pattern, action); } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]