org.apache.axis.utils.cache
Class JavaMethod

java.lang.Object
  |
  +--org.apache.axis.utils.cache.JavaMethod

public class JavaMethod
extends java.lang.Object

A simple cache of previously loaded methods

Author:
Sam Ruby

Constructor Summary
JavaMethod(java.lang.Class jc, java.lang.String name)
          Create a cache entry for this java.lang.Class
 
Method Summary
 java.lang.reflect.Method getMethod(int numargs)
          Attempt to find the closest matching method based on the number of arguments only.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaMethod

public JavaMethod(java.lang.Class jc,
                  java.lang.String name)
Create a cache entry for this java.lang.Class
Parameters:
jc - java.lang.Class which will be searched for methods
name - name of the method
Method Detail

getMethod

public java.lang.reflect.Method getMethod(int numargs)
Attempt to find the closest matching method based on the number of arguments only. Note: if there are multiple matches, one will be picked randomly. If the name is unique, it is simply returned without checking as attempts to invoke a method based on this will undoubtably fail anyway.
Parameters:
numargs - number of arguments. Use -1 to indicate "don't care".
Returns:
closest match


Copyright © 2001 Apache XML Project. All Rights Reserved.