public Object getResult(String className, String methodName, Map para) {
Object o = Class.forName(className);
Method method = null;
Object result = null;
try {
method = o.getClass().getMethod(methodName, new Class[]{Map.class});
result = method.invoke(o, para);
} catch (SecurityException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (NoSuchMethodException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IllegalArgumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IllegalAccessException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return result;
}
public Object getResult(String className, String methodName, Map para) {
Object o = Class.forName(className);
Method method = null;
Object result = null;
try {
method = o.getClass().getMethod(methodName, new Class[]{Map.class});
result = method.invoke(o, para);
} catch (SecurityException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (NoSuchMethodException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IllegalArgumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IllegalAccessException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return result;
}