-
Notifications
You must be signed in to change notification settings - Fork 34
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 #650 from loicmathieu/feat/config-mapping
Switch to Config Mapping
- Loading branch information
Showing
26 changed files
with
220 additions
and
236 deletions.
There are no files selected for viewing
11 changes: 5 additions & 6 deletions
11
.../java/io/quarkiverse/googlecloudservices/bigtable/deployment/BigtableBuildTimeConfig.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,22 +1,21 @@ | ||
package io.quarkiverse.googlecloudservices.bigtable.deployment; | ||
|
||
import io.quarkus.runtime.annotations.ConfigItem; | ||
import io.quarkus.runtime.annotations.ConfigPhase; | ||
import io.quarkus.runtime.annotations.ConfigRoot; | ||
import io.smallrye.config.ConfigMapping; | ||
|
||
/** | ||
* Root configuration class for Bigtable that operates at build time. | ||
* This class provides a nested structure for configuration, including | ||
* a separate group for the development service configuration. | ||
*/ | ||
@ConfigRoot(name = "google.cloud.bigtable", phase = ConfigPhase.BUILD_TIME) | ||
public class BigtableBuildTimeConfig { | ||
@ConfigMapping(prefix = "quarkus.google.cloud.bigtable") | ||
@ConfigRoot | ||
public interface BigtableBuildTimeConfig { | ||
|
||
/** | ||
* Configuration for the Bigtable dev service. | ||
* These settings will be used when Bigtable service is being configured | ||
* for development purposes. | ||
*/ | ||
@ConfigItem | ||
public BigtableDevServiceConfig devservice; | ||
BigtableDevServiceConfig devservice(); | ||
} |
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
13 changes: 7 additions & 6 deletions
13
...oglecloudservices/firebase/admin/deployment/authentication/FirebaseAuthConfiguration.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,15 +1,16 @@ | ||
package io.quarkiverse.googlecloudservices.firebase.admin.deployment.authentication; | ||
|
||
import io.quarkus.runtime.annotations.ConfigItem; | ||
import io.quarkus.runtime.annotations.ConfigPhase; | ||
import io.quarkus.runtime.annotations.ConfigRoot; | ||
import io.smallrye.config.ConfigMapping; | ||
import io.smallrye.config.WithDefault; | ||
|
||
@ConfigRoot(name = "google.cloud.firebase.auth", phase = ConfigPhase.BUILD_TIME) | ||
public class FirebaseAuthConfiguration { | ||
@ConfigMapping(prefix = "quarkus.google.cloud.firebase.auth") | ||
@ConfigRoot | ||
public interface FirebaseAuthConfiguration { | ||
|
||
/** | ||
* Enable or disable Firebase authentication. | ||
*/ | ||
@ConfigItem(defaultValue = "false") | ||
public boolean enabled; | ||
@WithDefault("false") | ||
boolean enabled(); | ||
} |
11 changes: 5 additions & 6 deletions
11
...ava/io/quarkiverse/googlecloudservices/firestore/deployment/FirestoreBuildTimeConfig.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,22 +1,21 @@ | ||
package io.quarkiverse.googlecloudservices.firestore.deployment; | ||
|
||
import io.quarkus.runtime.annotations.ConfigItem; | ||
import io.quarkus.runtime.annotations.ConfigPhase; | ||
import io.quarkus.runtime.annotations.ConfigRoot; | ||
import io.smallrye.config.ConfigMapping; | ||
|
||
/** | ||
* Root configuration class for Firestore that operates at build time. | ||
* This class provides a nested structure for configuration, including | ||
* a separate group for the development service configuration. | ||
*/ | ||
@ConfigRoot(name = "google.cloud.firestore", phase = ConfigPhase.BUILD_TIME) | ||
public class FirestoreBuildTimeConfig { | ||
@ConfigMapping(prefix = "quarkus.google.cloud.firestore") | ||
@ConfigRoot | ||
public interface FirestoreBuildTimeConfig { | ||
|
||
/** | ||
* Configuration for the Firestore dev service. | ||
* These settings will be used when Firestore service is being configured | ||
* for development purposes. | ||
*/ | ||
@ConfigItem | ||
public FirestoreDevServiceConfig devservice; | ||
FirestoreDevServiceConfig devservice(); | ||
} |
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
Oops, something went wrong.