pro.shuangxi.support.DefaultHandlerAdapter Maven / Gradle / Ivy
package pro.shuangxi.support;
import org.springframework.beans.factory.annotation.Autowired;
import pro.shuangxi.pojo.DispatcherParam;
import java.util.List;
/**
* @author :mengshx
* datetime :Created in 2022/3/28 11:37
* 默认适配器
*/
public class DefaultHandlerAdapter implements HandlerAdapter {
@Autowired
List handlers;
@Override
public void handle(DispatcherParam param) {
for (Handler handler : handlers) {
handler.process(param);
}
}
}