|
|
@ -38,9 +38,9 @@ public abstract class AbstractWebThreadPoolService implements WebThreadPoolServi
|
|
|
|
public Executor getWebThreadPool() {
|
|
|
|
public Executor getWebThreadPool() {
|
|
|
|
if (executor == null) {
|
|
|
|
if (executor == null) {
|
|
|
|
synchronized (AbstractWebThreadPoolService.class) {
|
|
|
|
synchronized (AbstractWebThreadPoolService.class) {
|
|
|
|
|
|
|
|
if (executor == null) {
|
|
|
|
ApplicationContext applicationContext = ApplicationContextHolder.getInstance();
|
|
|
|
ApplicationContext applicationContext = ApplicationContextHolder.getInstance();
|
|
|
|
WebServer webServer = ((WebServerApplicationContext) applicationContext).getWebServer();
|
|
|
|
WebServer webServer = ((WebServerApplicationContext) applicationContext).getWebServer();
|
|
|
|
if (executor == null) {
|
|
|
|
|
|
|
|
executor = getWebThreadPoolByServer(webServer);
|
|
|
|
executor = getWebThreadPoolByServer(webServer);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|