-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26184 from yrodiere/i26177-dev-services-drop-and-…
…create-native-mode Automatic drop-and-create of schema when using dev services in (native) integration tests
- Loading branch information
Showing
4 changed files
with
83 additions
and
22 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
...t/src/main/java/io/quarkus/deployment/builditem/DevServicesAdditionalConfigBuildItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package io.quarkus.deployment.builditem; | ||
|
||
import io.quarkus.builder.item.MultiBuildItem; | ||
|
||
/** | ||
* An additional configuration property to set when a dev service sets another, specific configuration property. | ||
* <p> | ||
* Quarkus will make sure the relevant settings are present in both JVM and native modes. | ||
* <p> | ||
* This is used to change the defaults of extension configuration when dev services are in use, | ||
* for example to enable schema management in the Hibernate ORM extension. | ||
*/ | ||
public final class DevServicesAdditionalConfigBuildItem extends MultiBuildItem { | ||
|
||
private final String triggeringKey; | ||
private final String key; | ||
private final String value; | ||
private final Runnable callbackWhenEnabled; | ||
|
||
public DevServicesAdditionalConfigBuildItem(String triggeringKey, | ||
String key, String value, Runnable callbackWhenEnabled) { | ||
this.triggeringKey = triggeringKey; | ||
this.key = key; | ||
this.value = value; | ||
this.callbackWhenEnabled = callbackWhenEnabled; | ||
} | ||
|
||
public String getTriggeringKey() { | ||
return triggeringKey; | ||
} | ||
|
||
public String getKey() { | ||
return key; | ||
} | ||
|
||
public String getValue() { | ||
return value; | ||
} | ||
|
||
public Runnable getCallbackWhenEnabled() { | ||
return callbackWhenEnabled; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters