未验证 提交 613cbed5 编写于 作者: I insist777 提交者: GitHub

[Improvement] Dependent tasks support dependent policies

上级 e32ddc12
......@@ -47,6 +47,7 @@ public final class TaskProcessorFactory {
static {
for (ITaskProcessor iTaskProcessor : ServiceLoader.load(ITaskProcessor.class)) {
try {
if (PROCESS_MAP.get(iTaskProcessor.getType()) == null )
PROCESS_MAP.put(iTaskProcessor.getType(), (Constructor<ITaskProcessor>) iTaskProcessor.getClass().getConstructor());
} catch (NoSuchMethodException e) {
throw new IllegalArgumentException("The task processor should has a no args constructor", e);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册