diff options
| author | doufenghu <[email protected]> | 2024-11-23 19:18:22 +0800 |
|---|---|---|
| committer | doufenghu <[email protected]> | 2024-11-23 19:18:22 +0800 |
| commit | 08015fd2e926aeb5019e1e2d96d4e23ab549346b (patch) | |
| tree | 5c4a74872af9d64f011421658393c87052ba2626 /groot-common | |
| parent | 6597e6729c69a4a93ec7d54c7e376c258e40d708 (diff) | |
[Improve][bootstrap] Enhance the dynamic loading of JAR files by configuring env.jars parameter to specify the plugin/third-parth JAR file path.
Diffstat (limited to 'groot-common')
| -rw-r--r-- | groot-common/src/main/java/com/geedgenetworks/common/utils/FactoryUtil.java | 6 | ||||
| -rw-r--r-- | groot-common/src/main/java/com/geedgenetworks/common/utils/JsonPathUtil.java | 4 |
2 files changed, 1 insertions, 9 deletions
diff --git a/groot-common/src/main/java/com/geedgenetworks/common/utils/FactoryUtil.java b/groot-common/src/main/java/com/geedgenetworks/common/utils/FactoryUtil.java index 276e28c..93197c6 100644 --- a/groot-common/src/main/java/com/geedgenetworks/common/utils/FactoryUtil.java +++ b/groot-common/src/main/java/com/geedgenetworks/common/utils/FactoryUtil.java @@ -4,10 +4,7 @@ import com.geedgenetworks.common.exception.IMapStorageException; import lombok.extern.slf4j.Slf4j; import java.lang.reflect.InvocationTargetException; -import java.util.LinkedList; -import java.util.List; -import java.util.ServiceConfigurationError; -import java.util.ServiceLoader; +import java.util.*; import java.util.stream.Collectors; @Slf4j @@ -17,7 +14,6 @@ public class FactoryUtil { try { final List<T> result = new LinkedList<>(); ServiceLoader.load(factoryClass, classLoader).iterator().forEachRemaining(result::add); - List<T> foundFactories = result.stream() .filter(f -> factoryClass.isAssignableFrom(f.getClass())) diff --git a/groot-common/src/main/java/com/geedgenetworks/common/utils/JsonPathUtil.java b/groot-common/src/main/java/com/geedgenetworks/common/utils/JsonPathUtil.java index 0823ddc..b9cfc72 100644 --- a/groot-common/src/main/java/com/geedgenetworks/common/utils/JsonPathUtil.java +++ b/groot-common/src/main/java/com/geedgenetworks/common/utils/JsonPathUtil.java @@ -10,10 +10,6 @@ import com.alibaba.fastjson2.JSONReader; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -/** - * @author qidaijie @Package com.zdjizhi.tools.json @Description: - * @date 2023/5/1917:51 - */ public class JsonPathUtil { private static final Log logger = LogFactory.get(); |
