node-web-mvc
Version:
node spring mvc
24 lines (23 loc) • 589 B
TypeScript
/**
* @module MappingRegistration
* @description 映射登记信息
*/
import HandlerMethod from '../../method/HandlerMethod';
export default class MappingRegistration<T> {
private mapping;
private readonly handlerMethod;
private mappingName;
constructor(mapping: T, handlerMethod: HandlerMethod, mappingName: string);
/**
* 获取当前映射配置
*/
getMapping(): T;
/**
* 获取当前映射对应的执行函数
*/
getHandlerMethod(): HandlerMethod;
/**
* 获取当前映射名称
*/
getMappingName(): string;
}