snaker-core/src/main/java/org/snaker/engine/model/NodeModel.java
private void intercept(List<SnakerInterceptor> interceptorList, Execution execution) {
		try {
			for(SnakerInterceptor interceptor : interceptorList) {
				interceptor.intercept(execution);
			}
		} catch(Exception e) {
			log.error("拦截器执行失败=" + e.getMessage());
            throw new SnakerException(e);
		}
	}
private void intercept(List<SnakerInterceptor> interceptorList, Execution execution) {
		try {
			for(SnakerInterceptor interceptor : interceptorList) {
				interceptor.intercept(execution);
			}
		} catch(Exception e) {
			log.error("拦截器执行失败=" + e.getMessage());
            throw new SnakerException(e);
		}
	}
private void intercept ( List < SnakerInterceptor > interceptorList , Execution execution ) { try { for ( SnakerInterceptor interceptor : interceptorList ) { interceptor . intercept ( execution ) ; } } catch ( Exception e ) { log . error ( "拦截器执行失败=" + e.getMessag ( ) ; throw new SnakerException ( e ) ; } }
拦截方法
@param interceptorList 拦截器列表
@param execution 执行对象
拦截方法