|
1 | 1 | /*
|
2 |
| - * Copyright 2012-2023 the original author or authors. |
| 2 | + * Copyright 2012-2024 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
22 | 22 | import liquibase.UpdateSummaryEnum;
|
23 | 23 | import liquibase.UpdateSummaryOutputEnum;
|
24 | 24 | import liquibase.integration.spring.SpringLiquibase;
|
| 25 | +import liquibase.ui.UIServiceEnum; |
25 | 26 |
|
26 | 27 | import org.springframework.boot.context.properties.ConfigurationProperties;
|
27 | 28 | import org.springframework.util.Assert;
|
@@ -147,6 +148,11 @@ public class LiquibaseProperties {
|
147 | 148 | */
|
148 | 149 | private ShowSummaryOutput showSummaryOutput;
|
149 | 150 |
|
| 151 | + /** |
| 152 | + * Which UIService to use. |
| 153 | + */ |
| 154 | + private UIService uiService; |
| 155 | + |
150 | 156 | public String getChangeLog() {
|
151 | 157 | return this.changeLog;
|
152 | 158 | }
|
@@ -316,6 +322,14 @@ public void setShowSummaryOutput(ShowSummaryOutput showSummaryOutput) {
|
316 | 322 | this.showSummaryOutput = showSummaryOutput;
|
317 | 323 | }
|
318 | 324 |
|
| 325 | + public UIService getUiService() { |
| 326 | + return this.uiService; |
| 327 | + } |
| 328 | + |
| 329 | + public void setUiService(UIService uiService) { |
| 330 | + this.uiService = uiService; |
| 331 | + } |
| 332 | + |
319 | 333 | /**
|
320 | 334 | * Enumeration of types of summary to show. Values are the same as those on
|
321 | 335 | * {@link UpdateSummaryEnum}. To maximize backwards compatibility, the Liquibase enum
|
@@ -368,4 +382,25 @@ public enum ShowSummaryOutput {
|
368 | 382 |
|
369 | 383 | }
|
370 | 384 |
|
| 385 | + /** |
| 386 | + * Enumeration of types of UIService. Values are the same as those on |
| 387 | + * {@link UIServiceEnum}. To maximize backwards compatibility, the Liquibase enum is |
| 388 | + * not used directly. |
| 389 | + * |
| 390 | + * @since 3.3.0 |
| 391 | + */ |
| 392 | + public enum UIService { |
| 393 | + |
| 394 | + /** |
| 395 | + * Console-based UIService. |
| 396 | + */ |
| 397 | + CONSOLE, |
| 398 | + |
| 399 | + /** |
| 400 | + * Logging-based UIService. |
| 401 | + */ |
| 402 | + LOGGER |
| 403 | + |
| 404 | + } |
| 405 | + |
371 | 406 | }
|
0 commit comments