You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@velocity.apache.org by nb...@apache.org on 2007/05/12 20:06:59 UTC

svn commit: r537499 - /velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/OldToolInfo.java

Author: nbubna
Date: Sat May 12 11:06:58 2007
New Revision: 537499

URL: http://svn.apache.org/viewvc?view=rev&rev=537499
Log:
configure() is no longer 'old'

Modified:
    velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/OldToolInfo.java

Modified: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/OldToolInfo.java
URL: http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/OldToolInfo.java?view=diff&rev=537499&r1=537498&r2=537499
==============================================================================
--- velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/OldToolInfo.java (original)
+++ velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/OldToolInfo.java Sat May 12 11:06:58 2007
@@ -35,10 +35,8 @@
 public class OldToolInfo extends ToolInfo
 {
     public static final String INIT_METHOD_NAME = "init";
-    public static final String CONFIGURE_METHOD_NAME = "configure";
 
     private Method init = null;
-    private Method configure = null;
 
     /**
      * Creates a new instance using the minimum required info
@@ -68,27 +66,12 @@
         {
             // ignore
         }
-        try
-        {
-            // check for a configure(Map) method
-            this.configure = clazz.getMethod("configure",
-                                             new Class[]{ Map.class });
-        }
-        catch (NoSuchMethodException nsme)
-        {
-            // ignore
-        }
     }
 
 
     public Object create(Map<String,Object> dynamicProperties)
     {
         Object tool = super.create(dynamicProperties);
-
-        if (this.configure != null && getProperties() != null)
-        {
-            invoke(this.configure, tool, getProperties());
-        }
 
         if (this.init != null)
         {