This commit is contained in:
@@ -31,9 +31,7 @@ import org.w3c.dom.*;
|
|||||||
/**
|
/**
|
||||||
* 编译时需要加入: -XDignore.symbol.file=true
|
* 编译时需要加入: -XDignore.symbol.file=true
|
||||||
* <p>
|
* <p>
|
||||||
* 进程启动类,程序启动后读取application.xml,进行classpath扫描动态加载Service与Servlet
|
* 进程启动类,程序启动后读取application.xml,进行classpath扫描动态加载Service与Servlet 优先加载所有SNCP协议的服务, 再加载其他协议服务, 最后进行Service、Servlet与其他资源之间的依赖注入。
|
||||||
* 优先加载所有SNCP协议的服务, 再加载其他协议服务,
|
|
||||||
* 最后进行Service、Servlet与其他资源之间的依赖注入。
|
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
@@ -472,8 +470,7 @@ public final class Application {
|
|||||||
} else {
|
} else {
|
||||||
if (!inited.get()) {
|
if (!inited.get()) {
|
||||||
synchronized (nodeClasses) {
|
synchronized (nodeClasses) {
|
||||||
if (!inited.get()) {
|
if (!inited.getAndSet(true)) { //加载自定义的协议,如:SOCKS
|
||||||
inited.set(true);
|
|
||||||
ClassFilter profilter = new ClassFilter(NodeProtocol.class, NodeServer.class);
|
ClassFilter profilter = new ClassFilter(NodeProtocol.class, NodeServer.class);
|
||||||
ClassFilter.Loader.load(home, profilter);
|
ClassFilter.Loader.load(home, profilter);
|
||||||
final Set<FilterEntry<NodeServer>> entrys = profilter.getFilterEntrys();
|
final Set<FilterEntry<NodeServer>> entrys = profilter.getFilterEntrys();
|
||||||
|
|||||||
Reference in New Issue
Block a user