package com.app.framework.core.log.intercept;

import cn.hutool.core.util.TypeUtil;

/**
 * 日志拦截器基类
 * 	[子类注意：拦截器中定义的方法必须与Controller中对应的方法同名同参]
 *
 * @param <Controller>	需要拦截的Controller
 */
public class LogInterceptSupport<Controller> {
	
	public LogInterceptSupport(){
		Class<?> controllerClass = (Class)TypeUtil.getTypeArgument(getClass());
		LogInterceptCenter.register(controllerClass, getClass());
	}
}
