com.github.houbbbbb.sso.nt.factory.ServerHandlerFactory Maven / Gradle / Ivy
The newest version!
package com.github.houbbbbb.sso.nt.factory;
import com.github.houbbbbb.sso.nt.handler.HeartbeatServerHandler;
import com.github.houbbbbb.sso.nt.handler.ServerChannelHandler;
import com.github.houbbbbb.sso.nt.util.BeanUtil;
/**
* @author: hbw
* @date: 2020/7/7
**/
public class ServerHandlerFactory extends AbstractFactory {
@Override
public ServerChannelHandler getServerHandler(ItemType type) {
ServerChannelHandler sch = null;
switch (type) {
case HEARTBEAT_SERVER_HANDLER: sch = BeanUtil.getBean(HeartbeatServerHandler.class); break;
default: break;
}
return sch;
}
}