protected Method[] getMonitoringMethodsArray(boolean hasGeneratedClasses) { Method[] methods = null; if (hasGeneratedClasses) { List<Method> methodList = new ArrayList<Method>(); for (Class clz : monitoredGeneratedClasses) { for (Method m : clz.getDeclaredMethods()) { methodList.add(m); } } methods = methodList.toArray(new Method[0]); } else { Vector methodVec = ejbDescriptor.getMethods(); int sz = methodVec.size(); methods = new Method[sz]; for (int i = 0; i < sz; i++) { methods[i] = (Method) methodVec.get(i); } } return methods; }
/** * Return the set of method objects on my home and remote interfaces. */ public Vector getMethods() { return getMethods(getEjbBundleDescriptor().getClassLoader()); }