133134135136137138139140141
try { method = classParam.getClass().getMethod(methodName, (Class[])null); result = (Class)method.invoke(classParam, (Object[])null); } catch ( Exception ex ) { throw new NoSuchMethodException(ex.getMessage()); } return result; }
132133134135136137138139140
112113114115116117118119120
Class result = null; try { method = classParam.getClass().getMethod(methodName, (Class[]) null); result = (Class) method.invoke(classParam, (Object[]) null); } catch (Exception ex) { throw new NoSuchMethodException(ex.getMessage()); } return result; }
125126127128129130131132133
153154155156157158159160161162163
createMethod = next; break; } } if( createMethod == null ) { throw new NoSuchMethodException("No matching adapted home " + "method found for @Init " + " method " + beanMethod); } } else { createMethod = homeIntf.getMethod(adaptedCreateMethodName,