pro.shuangxi.support.HandlerAdapter Maven / Gradle / Ivy
package pro.shuangxi.support;
import pro.shuangxi.pojo.DispatcherParam;
/**
* @author :mengshx
* datetime :Created in 2022/3/28 10:39
* 处理器
*/
public interface HandlerAdapter {
default boolean supports(DispatcherParam param){
if (param.getAdapter().getName().equals(this.getClass().getName())) {
return true;
}
return false;
}
void handle(DispatcherParam param);
}