All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.houbbbbb.sso.nt.factory.ClientHandlerFactory Maven / Gradle / Ivy

The newest version!
package com.github.houbbbbb.sso.nt.factory;

import com.github.houbbbbb.sso.nt.handler.ClientChannelHandler;
import com.github.houbbbbb.sso.nt.handler.HeartbeatClientHandler;
import com.github.houbbbbb.sso.nt.util.BeanUtil;

/**
 * @todo:
 * @author: hbw
 * @date: 2020/7/7
 **/
public class ClientHandlerFactory extends AbstractFactory {
    @Override
    public ClientChannelHandler getClientHandler(ItemType type) {
        ClientChannelHandler cch = null;
        switch (type) {
            case HEARTBEAT_CLIENT_HANDLER: cch = BeanUtil.getBean(HeartbeatClientHandler.class); break;
            default: break;
        }
        return cch;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy