forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
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 quarkusio#39342 from michalvavrik/feature/migrate-…
…keycloak-admin-client-config-classes Migrate Keycloak Admin Client from config classes to the `@ConfigMapping`
- Loading branch information
Showing
7 changed files
with
108 additions
and
55 deletions.
There are no files selected for viewing
12 changes: 7 additions & 5 deletions
12
...main/java/io/quarkus/keycloak/admin/client/common/KeycloakAdminClientBuildTimeConfig.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,19 +1,21 @@ | ||
package io.quarkus.keycloak.admin.client.common; | ||
|
||
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; | ||
|
||
/** | ||
* Keycloak Admin Client | ||
*/ | ||
@ConfigRoot(phase = ConfigPhase.BUILD_TIME, name = "keycloak.admin-client") | ||
public class KeycloakAdminClientBuildTimeConfig { | ||
@ConfigMapping(prefix = "quarkus.keycloak.admin-client") | ||
@ConfigRoot(phase = ConfigPhase.BUILD_TIME) | ||
public interface KeycloakAdminClientBuildTimeConfig { | ||
|
||
/** | ||
* Set to true if Keycloak Admin Client injection is supported. | ||
*/ | ||
@ConfigItem(defaultValue = "true") | ||
public boolean enabled = true; | ||
@WithDefault("true") | ||
boolean enabled(); | ||
|
||
} |
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