1 16 package org.apache.axis.encoding.ser; 17 18 import java.lang.reflect.Method ; 19 20 import javax.xml.namespace.QName ; 21 22 import org.apache.axis.utils.cache.MethodCache; 23 24 30 public abstract class BaseFactory { 31 32 private static final Class [] STRING_CLASS_QNAME_CLASS = new Class [] { 33 String .class, Class .class, QName .class 34 }; 35 36 39 protected Method getMethod(Class clazz, String methodName) { 40 Method method = null; 41 try { 42 method = MethodCache.getInstance().getMethod(clazz, methodName, STRING_CLASS_QNAME_CLASS); 43 } catch (NoSuchMethodException e) { 44 } 45 return method; 46 } 47 } 48 | Popular Tags |