最新版本升级

This commit is contained in:
Zhang.WH
2025-09-02 19:15:07 +08:00
parent 2c907e49f4
commit 7d972e2d17
3598 changed files with 155327 additions and 23880 deletions

View File

@@ -0,0 +1,38 @@
package com.openhis.context;
import java.util.HashMap;
import java.util.Map;
import com.openhis.service.IElepHandlerService;
import org.springframework.stereotype.Component;
import com.openhis.service.HandlerService;
/**
* 工厂模式
*/
@Component
public class ElepHandlerServiceContext {
/** 接口处理器容器 */
private final Map<String, IElepHandlerService> elepHandlerMap = new HashMap<>();
/**
* 根据类型从容器中获取处理器
* @param type
* @return
*/
public IElepHandlerService getElepHandlerService(String type) {
return elepHandlerMap.get(type);
}
/**
* 装载处理器
* @param type
* @param service
*/
public void putElepHandlerService(String type, IElepHandlerService service) {
elepHandlerMap.put(type, service);
}
}