Package org.eweb4j.mvc.interceptor

Examples of org.eweb4j.mvc.interceptor.InterExecution.execute()


    /* 对于外部配置的前置拦截器,方法体内的前置拦截器较后执行  */
    Before before = method.getAnnotation(Before.class);
    if (before != null){
      InterExecution before_interExe = new InterExecution("before", context);
      before_interExe.execute(before.value());
      if (before_interExe.getError() != null){
        before_interExe.showErr();
        return ;
      }
    }
View Full Code Here


      /* 方法体内的后置拦截器先执行  */
      After after = method.getAnnotation(After.class);
      if (after != null){
        // 后置拦截器
        InterExecution after_interExe = new InterExecution("after", context);
        after_interExe.execute(after.value());
        if (after_interExe.getError() != null){
          after_interExe.showErr();
          return ;
        }
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.