commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1071706 - /commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/xmlrules/FromXmlRulesModule.java
Date Thu, 17 Feb 2011 17:20:07 GMT
Author: simonetripodi
Date: Thu Feb 17 17:20:06 2011
New Revision: 1071706

URL: http://svn.apache.org/viewvc?rev=1071706&view=rev
Log:
removed the constructors to load resources from classpath, too many confusion

Modified:
    commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/xmlrules/FromXmlRulesModule.java

Modified: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/xmlrules/FromXmlRulesModule.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/xmlrules/FromXmlRulesModule.java?rev=1071706&r1=1071705&r2=1071706&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/xmlrules/FromXmlRulesModule.java
(original)
+++ commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/xmlrules/FromXmlRulesModule.java
Thu Feb 17 17:20:06 2011
@@ -50,35 +50,6 @@ public final class FromXmlRulesModule im
 
     /**
      * 
-     * @param path
-     * @throws IOException
-     */
-    public FromXmlRulesModule(String path) throws IOException {
-        this(path, Thread.currentThread().getContextClassLoader());
-    }
-
-    /**
-     * 
-     * @param path
-     * @param classLoader
-     * @throws IOException
-     */
-    public FromXmlRulesModule(String path, ClassLoader classLoader) throws IOException {
-        if (path == null) {
-            throw new DigesterLoadingException("Parameter 'path' must not be null");
-        }
-        if (classLoader == null) {
-            classLoader = this.getClass().getClassLoader();
-        }
-        URL xmlRules = classLoader.getResource(path);
-        if (xmlRules == null) {
-            throw new DigesterLoadingException(String.format("XML Rules '%s' not found on
", path));
-        }
-        this.xmlRules = createInputSourceFromURL(xmlRules);
-    }
-
-    /**
-     * 
      * @param file
      * @throws IOException
      */



Mime
View raw message