From 835435c2200410c0db7e93c580675617d4030086 Mon Sep 17 00:00:00 2001 From: Redkale <22250530@qq.com> Date: Sat, 24 Jun 2017 10:38:41 +0800 Subject: [PATCH] --- src/org/redkale/boot/Application.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/org/redkale/boot/Application.java b/src/org/redkale/boot/Application.java index deeb5b9ab..e2fca4967 100644 --- a/src/org/redkale/boot/Application.java +++ b/src/org/redkale/boot/Application.java @@ -383,6 +383,8 @@ public final class Application { Class type = field.getType(); if (type == Application.class) { field.set(src, application); + } else if (type == ResourceFactory.class) { + field.set(src, res.name().equalsIgnoreCase("server") ? rf : (res.name().isEmpty() ? application.resourceFactory : null)); } else if (type == TransportFactory.class) { field.set(src, application.transportFactory); } else if (type == NodeSncpServer.class) {