try {
Class actionClass = Class.forName(className);
Method[] methods = actionClass.getMethods();
for(Method method : methods) {
if(method.isAnnotationPresent(DirectMethod.class)) {
DirectMethod directMethod = method.getAnnotation(DirectMethod.class);
String methodName = StringUtils.isBlank(directMethod.name()) ? method.getName() : directMethod.name();
this.registerMethod(directNameSpace, directActionName, methodName, actionClass, method);
}
}
} catch(Exception e) {
throw new DirectException("Error registering class: " + className + " with actionName: " + directActionName, e);