Tue Apr 23, 2013 9:42 pm
public Object invokeMethod(Object ownerObject, Method method, Object... methodParameters) {
Object methodReturn = null;
try {
methodReturn = method.invoke(ownerObject, methodParameters);
} catch (IllegalArgumentException e) {
// Do something
} catch (IllegalAccessException e) {
// Do something
} catch (InvocationTargetException e) {
// Do something
}
return methodReturn;
}
}
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.