-
Notifications
You must be signed in to change notification settings - Fork 10
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 #25 from mcruzdev/main
Change RoqDataConfig as interface
- Loading branch information
Showing
3 changed files
with
24 additions
and
20 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
16 changes: 0 additions & 16 deletions
16
roq-data/deployment/src/main/java/io/quarkiverse/roq/data/deployment/RoqDataConfig.java
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
roq-data/runtime/src/main/java/io/quarkiverse/roq/data/runtime/RoqDataConfig.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,19 @@ | ||
package io.quarkiverse.roq.data.runtime; | ||
|
||
import io.quarkus.runtime.annotations.ConfigPhase; | ||
import io.quarkus.runtime.annotations.ConfigRoot; | ||
import io.smallrye.config.ConfigMapping; | ||
import io.smallrye.config.WithDefault; | ||
|
||
@ConfigMapping(prefix = "quarkus.roq.data") | ||
@ConfigRoot(phase = ConfigPhase.BUILD_AND_RUN_TIME_FIXED) | ||
public interface RoqDataConfig { | ||
|
||
String DEFAULT_LOCATION = "data"; | ||
|
||
/** | ||
* The location of the Roq data files. | ||
*/ | ||
@WithDefault(DEFAULT_LOCATION) | ||
String location(); | ||
} |