You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2011/02/01 16:19:35 UTC

svn commit: r1066062 - /commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/FactoryCreateRule.java

Author: simonetripodi
Date: Tue Feb  1 15:19:33 2011
New Revision: 1066062

URL: http://svn.apache.org/viewvc?rev=1066062&view=rev
Log:
added factoryCreate() method implementation

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

Modified: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/FactoryCreateRule.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/FactoryCreateRule.java?rev=1066062&r1=1066061&r2=1066062&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/FactoryCreateRule.java (original)
+++ commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/FactoryCreateRule.java Tue Feb  1 15:19:33 2011
@@ -67,24 +67,13 @@ public class FactoryCreateRule extends R
      * @param className Default Java class name of the factory class
      * @param attributeName Attribute name which, if present, contains an
      *  override of the class name of the object creation factory to create.
+     * 
      * @param ignoreCreateExceptions if true, exceptions thrown by the object
      *  creation factory will be ignored.
      */
-    public FactoryCreateRule(String className, String attributeName, boolean ignoreCreateExceptions) {
+    public <T> FactoryCreateRule(String className, String attributeName, ObjectCreationFactory<T> creationFactory, boolean ignoreCreateExceptions) {
         this.className = className;
         this.attributeName = attributeName;
-        this.ignoreCreateExceptions = ignoreCreateExceptions;
-    }
-
-    /**
-     * Construct a factory create rule using the given, already instantiated,
-     * {@link ObjectCreationFactory}.
-     *
-     * @param creationFactory called on to create the object.
-     * @param ignoreCreateExceptions if true, exceptions thrown by the object
-     *  creation factory will be ignored.
-     */
-    public <T> FactoryCreateRule(ObjectCreationFactory<T> creationFactory, boolean ignoreCreateExceptions) {
         this.creationFactory = creationFactory;
         this.ignoreCreateExceptions = ignoreCreateExceptions;
     }