mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
dbeaver/pro#3977 ability to load self-signet cert from a specific folder (#3201)
Co-authored-by: kseniaguzeeva <112612526+kseniaguzeeva@users.noreply.github.com> Co-authored-by: Serge Rider <serge@jkiss.org>
This commit is contained in:
co-authored by
kseniaguzeeva
Serge Rider
parent
b7bbf4e65f
commit
3ceac40016
+1
-2
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* DBeaver - Universal Database Manager
|
||||
* Copyright (C) 2010-2024 DBeaver Corp and others
|
||||
* Copyright (C) 2010-2025 DBeaver Corp and others
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -202,7 +202,6 @@ public abstract class CBApplication<T extends CBServerConfig> extends
|
||||
|
||||
@Override
|
||||
protected void startServer() {
|
||||
CBPlatform.setApplication(this);
|
||||
try {
|
||||
if (!loadServerConfiguration()) {
|
||||
return;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* DBeaver - Universal Database Manager
|
||||
* Copyright (C) 2010-2024 DBeaver Corp and others
|
||||
* Copyright (C) 2010-2025 DBeaver Corp and others
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -23,8 +23,8 @@ import io.cloudbeaver.server.jobs.WebSessionMonitorJob;
|
||||
import org.eclipse.core.runtime.IStatus;
|
||||
import org.eclipse.core.runtime.Status;
|
||||
import org.jkiss.code.NotNull;
|
||||
import org.jkiss.code.Nullable;
|
||||
import org.jkiss.dbeaver.Log;
|
||||
import org.jkiss.dbeaver.model.impl.app.BaseApplicationImpl;
|
||||
import org.jkiss.dbeaver.model.preferences.DBPPreferenceStore;
|
||||
import org.jkiss.dbeaver.model.runtime.AbstractJob;
|
||||
import org.jkiss.dbeaver.model.runtime.DBRProgressMonitor;
|
||||
@@ -43,9 +43,6 @@ public class CBPlatform extends BaseWebPlatform {
|
||||
|
||||
private static final Log log = Log.getLog(CBPlatform.class);
|
||||
|
||||
@Nullable
|
||||
private static CBApplication<?> application = null;
|
||||
|
||||
private WebServerPreferenceStore preferenceStore;
|
||||
|
||||
public static CBPlatform getInstance() {
|
||||
@@ -55,10 +52,6 @@ public class CBPlatform extends BaseWebPlatform {
|
||||
protected CBPlatform() {
|
||||
}
|
||||
|
||||
public static void setApplication(@NotNull CBApplication<?> application) {
|
||||
CBPlatform.application = application;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected synchronized void initialize() {
|
||||
long startTime = System.currentTimeMillis();
|
||||
@@ -71,13 +64,13 @@ public class CBPlatform extends BaseWebPlatform {
|
||||
|
||||
protected void scheduleServerJobs() {
|
||||
super.scheduleServerJobs();
|
||||
new WebSessionMonitorJob(this, application.getSessionManager())
|
||||
new WebSessionMonitorJob(this, getApplication().getSessionManager())
|
||||
.scheduleMonitor();
|
||||
|
||||
new SessionStateJob(this, application.getSessionManager())
|
||||
new SessionStateJob(this, getApplication().getSessionManager())
|
||||
.scheduleMonitor();
|
||||
|
||||
new WebDataSourceMonitorJob(this, application.getSessionManager())
|
||||
new WebDataSourceMonitorJob(this, getApplication().getSessionManager())
|
||||
.scheduleMonitor();
|
||||
|
||||
new AbstractJob("Delete temp folder") {
|
||||
@@ -100,7 +93,6 @@ public class CBPlatform extends BaseWebPlatform {
|
||||
|
||||
super.dispose();
|
||||
|
||||
CBPlatform.application = null;
|
||||
System.gc();
|
||||
log.debug("Shutdown completed in " + (System.currentTimeMillis() - startTime) + "ms");
|
||||
}
|
||||
@@ -108,7 +100,7 @@ public class CBPlatform extends BaseWebPlatform {
|
||||
@NotNull
|
||||
@Override
|
||||
public CBApplication<?> getApplication() {
|
||||
return application;
|
||||
return (CBApplication) BaseApplicationImpl.getInstance();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* DBeaver - Universal Database Manager
|
||||
* Copyright (C) 2010-2024 DBeaver Corp and others
|
||||
* Copyright (C) 2010-2025 DBeaver Corp and others
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -60,6 +60,7 @@ public abstract class BaseWebPlatform extends BasePlatformImpl {
|
||||
SecurityProviderUtils.registerSecurityProvider();
|
||||
|
||||
// Register properties adapter
|
||||
getApplication().beforeWorkspaceInitialization();
|
||||
this.workspace = new ServerGlobalWorkspace(this, getApplication());
|
||||
this.workspace.initializeProjects();
|
||||
QMUtils.initApplication(this);
|
||||
|
||||
Reference in New Issue
Block a user