//package cn.com.poc.support.register;
//
//
//import cn.com.blo.common.constant.Member3ptRegisterChannel;
//import cn.com.blo.support.register.channel.bl.BlMobileRegisterService;
//import cn.com.blo.support.register.channel.bl.BlWxMiniRegisterService;
//import cn.com.yict.framemax.core.i18n.I18nMessageException;
//import org.springframework.beans.BeansException;
//import org.springframework.context.ApplicationContext;
//import org.springframework.context.ApplicationContextAware;
//import org.springframework.stereotype.Component;
//
//
///**
// * @author Focan.Zhong
// */
//@Component
//public class ThirdPlatformRegisterServiceBuilder implements ApplicationContextAware {
//
//    private ApplicationContext applicationContext;
//
//    public ThirdPlatformRegisterService getService(Member3ptRegisterChannel channel) throws Exception {
//
//        if (Member3ptRegisterChannel.bl_wx_mini.equals(channel)) {
//            return applicationContext.getBean(BlWxMiniRegisterService.class);
//        } else if (Member3ptRegisterChannel.bl_mobile.equals(channel)) {
//            return applicationContext.getBean(BlMobileRegisterService.class);
//        }
//
//        throw new I18nMessageException("注册渠道异常");
//    }
//
//    @Override
//    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
//        this.applicationContext = applicationContext;
//    }
//}
