package com.zcloud.service.map; import org.apache.commons.lang.StringUtils; import java.util.HashMap; import java.util.Map; /** * 说明:TODO * 作者:wangxuan * 官网:www.zcloudchina.com */ public class AssemblyBeanFactory { private static Map strategyMap = new HashMap<>(); /** * @Description: 获取组装数据工厂类 * xfsy01 消防水源 * xfbf01 消防泵房 * xfjyd01 防救援队 * xfkzs01 消防控制室 */ public static AbsFireSourcesHandel getInvokeStrategy(String type) { return strategyMap.get(type); } /** * @Description: 注册组装数据工厂类 * xfsy01 消防水源 * xfbf01 消防泵房 * xfjyd01 防救援队 * xfkzs01 消防控制室 */ public static void register(String type, AbsFireSourcesHandel handler) { if (StringUtils.isEmpty(type) && handler == null) { return; } strategyMap.put(type, handler); } }