This commit is contained in:
Redkale
2018-01-30 11:27:14 +08:00
parent 11d8d36c12
commit 15cd16e771
13 changed files with 53 additions and 30 deletions

View File

@@ -90,8 +90,8 @@ public abstract class NodeServer {
public NodeServer(Application application, Server server) {
this.application = application;
this.resourceFactory = application.getResourceFactory().createChild();
this.server = server;
this.resourceFactory = server.getResourceFactory();
this.logger = Logger.getLogger(this.getClass().getSimpleName());
this.serverClassLoader = new RedkaleClassLoader(application.getServerClassLoader());
Thread.currentThread().setContextClassLoader(this.serverClassLoader);