node-web-mvc
Version:
node spring mvc
19 lines (18 loc) • 539 B
TypeScript
/**
* @module HandlerInteceptorRegistry
* @description 拦截器注册表
*/
import HandlerInterceptor from './HandlerInterceptor';
import InterceptorRegistration from './InterceptorRegistration';
export default class HandlerInteceptorRegistry {
private readonly registrations;
constructor();
/**
* 获取当前注册的所有拦截器
*/
getInterceptors(): Array<HandlerInterceptor>;
/**
* 添加一个拦截器
*/
addInterceptor(interceptor: HandlerInterceptor): InterceptorRegistration;
}