return interceptorInfoList;
}
private InterceptorInfo findInterceptorInfo(Annotation ann) {
PreInterceptorAnnotation preA = AnnotationUtils.findAnnotation(ann.getClass(), PreInterceptorAnnotation.class);
PostInterceptorAnnotation postA = AnnotationUtils.findAnnotation(ann.getClass(), PostInterceptorAnnotation.class);
if (preA == null && postA == null)
return null;
Object orderObject = AnnotationUtils.getValue(ann, "order");
int order = orderObject == null ? 100
: (Integer)orderObject; // xxx: maybe throw exception.
PreInterceptor preInterceptor = (preA == null ? null : getArgo().getInstance(preA.value()));
PostInterceptor postInterceptor = (postA == null ? null : getArgo().getInstance(postA.value()));
return new InterceptorInfo(ann, order, preInterceptor, postInterceptor);
}