-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
115 additions
and
74 deletions.
There are no files selected for viewing
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
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
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
11 changes: 4 additions & 7 deletions
11
...sion/runtime/src/main/java/io/quarkus/extest/runtime/config/EnvBuildTimeConfigSource.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 |
---|---|---|
@@ -1,16 +1,13 @@ | ||
package io.quarkus.extest.runtime.config; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
import io.smallrye.config.EnvConfigSource; | ||
|
||
public class EnvBuildTimeConfigSource extends EnvConfigSource { | ||
public EnvBuildTimeConfigSource() { | ||
super(new HashMap<>() { | ||
{ | ||
put("QUARKUS_RT_RT_STRING_OPT", "changed"); | ||
put("BT_DO_NOT_RECORD", "env-source"); | ||
} | ||
}, Integer.MAX_VALUE); | ||
super(Map.of("QUARKUS_RT_RT_STRING_OPT", "changed", | ||
"BT_OK_TO_RECORD", "env-source", | ||
"DO_NOT_RECORD", "record"), Integer.MAX_VALUE); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...main/java/io/quarkus/extest/runtime/config/RecordQuarkusSystemPropertiesConfigSource.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,18 @@ | ||
package io.quarkus.extest.runtime.config; | ||
|
||
import java.util.Map; | ||
|
||
import io.quarkus.runtime.annotations.StaticInitSafe; | ||
import io.smallrye.config.EnvConfigSource; | ||
|
||
@StaticInitSafe | ||
public class RecordQuarkusSystemPropertiesConfigSource extends EnvConfigSource { | ||
public RecordQuarkusSystemPropertiesConfigSource() { | ||
super(Map.of( | ||
"SHOULD_NOT_BE_RECORDED", "value", | ||
"should.not.be.recorded", "value", | ||
"quarkus.mapping.rt.record", "value", | ||
"%dev.quarkus.mapping.rt.record", "dev", | ||
"_PROD_QUARKUS_MAPPING_RT_RECORD", "prod"), 0); | ||
} | ||
} |
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