|
|
|
@ -199,16 +199,7 @@ public class DesignComponent {
|
|
|
|
|
}, DesignerStartupPool.common()); |
|
|
|
|
CompletableFuture<Void> mainDesignerPrepare = CompletableFuture.runAsync(this::designerModuleStart, DesignerStartupPool.common()); |
|
|
|
|
CompletableFuture<Void> extendDesignerPrepare = CompletableFuture.runAsync(this::designerExtendStart, DesignerStartupPool.common()); |
|
|
|
|
CompletableFuture<Void> otherFeaturesPrepare = CompletableFuture.runAsync(() -> { |
|
|
|
|
startBBSLoginAuthServer(); |
|
|
|
|
migrateBBSInfoFromFineDB(); |
|
|
|
|
OSSupportCenter.buildAction(objects -> UserInfoPane.getInstance().updateBBSUserInfo(), SupportOSImpl.BBS_USER_LOGIN_PANE); |
|
|
|
|
loadLogAppender(); |
|
|
|
|
DesignerWorkspaceLoader.init(); |
|
|
|
|
storePassport(); |
|
|
|
|
AlphaFineHelper.switchConfig4Locale(); |
|
|
|
|
RecoverManager.register(new RecoverForDesigner()); |
|
|
|
|
}, DesignerStartupPool.common()); |
|
|
|
|
CompletableFuture<Void> otherFeaturesPrepare = CompletableFuture.runAsync(() -> designerOtherStart(), DesignerStartupPool.common()); |
|
|
|
|
CompletableFuture<Void> resourcePrepare = CompletableFuture.runAsync(() -> { |
|
|
|
|
pushUpdateTask.run(); |
|
|
|
|
if (WorkContext.getCurrent().isLocal()) { |
|
|
|
@ -219,6 +210,17 @@ public class DesignComponent {
|
|
|
|
|
CompletableFuture.allOf(mainDesignerPrepare, extendDesignerPrepare, themeConfigPrepare, otherFeaturesPrepare, resourcePrepare).join(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void designerOtherStart() { |
|
|
|
|
startBBSLoginAuthServer(); |
|
|
|
|
migrateBBSInfoFromFineDB(); |
|
|
|
|
OSSupportCenter.buildAction(objects -> UserInfoPane.getInstance().updateBBSUserInfo(), SupportOSImpl.BBS_USER_LOGIN_PANE); |
|
|
|
|
loadLogAppender(); |
|
|
|
|
DesignerWorkspaceLoader.init(); |
|
|
|
|
storePassport(); |
|
|
|
|
AlphaFineHelper.switchConfig4Locale(); |
|
|
|
|
RecoverManager.register(new RecoverForDesigner()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void loadLogAppender() { |
|
|
|
|
logHandler = new LogHandler<DesignerLogAppender>() { |
|
|
|
|