/** * 变量初始化 * * @param joinPoint */ private void initService(JoinPoint joinPoint) { Object[] args = joinPoint.getArgs(); DataExchangeService target = (DataExchangeService) joinPoint.getTarget(); MainParamVo params = (MainParamVo) args[0]; // resultInfo = params.resultInfo; target.init(params); checkService.init(params); }
/** 执行对应check方法 */ private void executeCheckMethod(String stepCode) { if (stepCode.length() == 0) return; stepCode = stepCode.substring("stepFlow".length()); // log.debug("check:"+stepCode); try { Method checkMethod = checkService.getClass().getMethod("check" + stepCode, new Class[] {}); checkMethod.invoke(checkService, new Object[] {}); } catch (Exception e) { e.printStackTrace(); } }