qa-prevention-gwj/src/main/java/com/zcloud/service/map/AssemblyBeanFactory.java

43 lines
1015 B
Java
Raw Normal View History

2024-01-02 14:12:40 +08:00
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<String, AbsFireSourcesHandel> 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);
}
}