org.apache.directory.shared.ldap.util
Class DirectoryClassUtils

java.lang.Object
  extended by org.apache.directory.shared.ldap.util.DirectoryClassUtils

public class DirectoryClassUtils
extends java.lang.Object

Version:
$Rev:$
Author:
Apache Directory Project

Constructor Summary
DirectoryClassUtils()
           
 
Method Summary
static java.lang.reflect.Method getAssignmentCompatibleMethod(java.lang.Class<?> clazz, java.lang.String candidateMethodName, java.lang.Class<?>[] candidateParameterTypes)
          A replacement for Class.getMethod(java.lang.String, java.lang.Class...) with extended capability.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryClassUtils

public DirectoryClassUtils()
Method Detail

getAssignmentCompatibleMethod

public static java.lang.reflect.Method getAssignmentCompatibleMethod(java.lang.Class<?> clazz,
                                                                     java.lang.String candidateMethodName,
                                                                     java.lang.Class<?>[] candidateParameterTypes)
                                                              throws java.lang.NoSuchMethodException
A replacement for Class.getMethod(java.lang.String, java.lang.Class...) with extended capability.

This method returns parameter-list assignment-compatible method as well as exact-signature matching method.

Parameters:
clazz - The class which will be queried for the method.
candidateMethodName - Name of the method been looked for.
candidateParameterTypes - Types of the parameters in the signature of the method being loooked for.
Returns:
The Method found.
Throws:
java.lang.NoSuchMethodException - when the method cannot be found


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.