commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1066062 - /commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/FactoryCreateRule.java
Date Tue, 01 Feb 2011 15:19:35 GMT
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;
     }



Mime
View raw message