01: package org.objectweb.celtix.bus.bindings.xml;
02:
03: import java.lang.reflect.Method;
04:
05: public final class ClassUtils {
06: private ClassUtils() {
07: // Complete
08: }
09:
10: public static Method getMethod(Class<?> clazz, String methodName)
11: throws Exception {
12: Method[] declMethods = clazz.getDeclaredMethods();
13: for (Method method : declMethods) {
14: if (method.getName().equals(methodName)) {
15: return method;
16: }
17: }
18: return null;
19: }
20: }
|