org.apache.tuscany.sca.binding.corba.impl.util
Class MethodFinder

java.lang.Object
  extended by org.apache.tuscany.sca.binding.corba.impl.util.MethodFinder

public class MethodFinder
extends java.lang.Object


Constructor Summary
MethodFinder()
           
 
Method Summary
static java.lang.reflect.Method findMethod(java.lang.Class<?> forClass, java.lang.String methodName, java.lang.Class<?>[] parameterTypes)
          Finds appropriate method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodFinder

public MethodFinder()
Method Detail

findMethod

public static java.lang.reflect.Method findMethod(java.lang.Class<?> forClass,
                                                  java.lang.String methodName,
                                                  java.lang.Class<?>[] parameterTypes)
Finds appropriate method. This method ignores difference between primitive types and theirs object equivalents. Ie. if we want to find method "get" in java.util.List with only one parameter, which type is Integer then we'll obtain method get(int).

Parameters:
forClass - class which possibly contains desired method
methodName - desired methods name
parameterTypes - desired methods parameter types
Returns:
desired method, if no method was found then null will be returned