commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons/collections/src/java/org/apache/commons/collections/functors InvokerTransformer.java
Date Wed, 26 May 2004 21:44:05 GMT
scolebourne    2004/05/26 14:44:05

  Modified:    collections/src/java/org/apache/commons/collections/functors
                        InvokerTransformer.java
  Log:
  Add additional getInstance method
  
  Revision  Changes    Path
  1.7       +16 -2     jakarta-commons/collections/src/java/org/apache/commons/collections/functors/InvokerTransformer.java
  
  Index: InvokerTransformer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/functors/InvokerTransformer.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- InvokerTransformer.java	16 May 2004 11:36:31 -0000	1.6
  +++ InvokerTransformer.java	26 May 2004 21:44:05 -0000	1.7
  @@ -43,7 +43,21 @@
       private final Object[] iArgs;
   
       /**
  -     * Gets an instanceof this transformer calling a specific method with specific values.
  +     * Gets an instance of this transformer calling a specific method with no arguments.
  +     * 
  +     * @param methodName  the method name to call
  +     * @return an invoker transformer
  +     * @since Commons Collections 3.1
  +     */
  +    public static Transformer getInstance(String methodName) {
  +        if (methodName == null) {
  +            throw new IllegalArgumentException("The method to invoke must not be null");
  +        }
  +        return new InvokerTransformer(methodName);
  +    }
  +
  +    /**
  +     * Gets an instance of this transformer calling a specific method with specific values.
        * 
        * @param methodName  the method name to call
        * @param paramTypes  the parameter types of the method
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message