use of com.generallycloud.baseio.container.configuration.FileSystemACLoader in project baseio by generallycloud.
the class ApplicationContext method doStart.
@Override
protected void doStart() throws Exception {
if (channelContext == null) {
throw new IllegalArgumentException("null nio context");
}
if (StringUtil.isNullOrBlank(rootLocalAddress)) {
throw new IllegalArgumentException("rootLocalAddress");
}
if (futureAcceptorServiceFilter == null) {
this.futureAcceptorServiceFilter = new FutureAcceptorServiceFilter();
}
if (appRedeployService == null) {
appRedeployService = new SystemRedeployServlet();
}
if (acLoader == null) {
acLoader = new FileSystemACLoader();
}
if (exceptionCaughtHandle == null) {
exceptionCaughtHandle = new LoggerExceptionCaughtHandle();
}
if (ioExceptionCaughtHandle == null) {
ioExceptionCaughtHandle = new LoggerExceptionCaughtHandle();
}
instance = this;
this.rootLocalAddress = FileUtil.getPrettyPath(rootLocalAddress);
this.encoding = channelContext.getEncoding();
this.appLocalAddres = FileUtil.getPrettyPath(getRootLocalAddress() + "app");
LoggerUtil.prettyLog(logger, "application path :{ {} }", appLocalAddres);
this.initializeApplicationContext();
}
Aggregations