mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
dbeaver/pro#6759 CLI model
This commit is contained in:
+3
-1
@@ -198,6 +198,7 @@ public abstract class BaseServletApplication extends BaseApplicationImpl impleme
|
||||
}
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public Object start(IApplicationContext context) {
|
||||
initializeApplicationServices();
|
||||
@@ -210,8 +211,9 @@ public abstract class BaseServletApplication extends BaseApplicationImpl impleme
|
||||
startServer();
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(), e);
|
||||
return EXIT_ERROR_UNSPECIFIED;
|
||||
}
|
||||
return null;
|
||||
return EXIT_OK;
|
||||
}
|
||||
|
||||
protected abstract void startServer() throws DBException;
|
||||
|
||||
@@ -98,4 +98,5 @@ public class CBConstants {
|
||||
|
||||
public static final String BIND_SESSION_ENABLE = "enable";
|
||||
public static final String BIND_SESSION_DISABLE = "disable";
|
||||
public static final String DEFAULT_CLOUD_PROJECT_NAME = "GlobalConfiguration";
|
||||
}
|
||||
|
||||
+2
-1
@@ -505,9 +505,10 @@ public abstract class CBApplication<T extends CBServerConfig>
|
||||
return "";
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public String getDefaultProjectName() {
|
||||
return "GlobalConfiguration";
|
||||
return CBConstants.DEFAULT_CLOUD_PROJECT_NAME;
|
||||
}
|
||||
|
||||
public boolean isDevelMode() {
|
||||
|
||||
Reference in New Issue
Block a user