velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nbu...@apache.org
Subject svn commit: r537499 - /velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/OldToolInfo.java
Date Sat, 12 May 2007 18:06:59 GMT
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)
         {



Mime
View raw message