-
Notifications
You must be signed in to change notification settings - Fork 21
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 #215 from pjgg/feat/remove-deprecated-code
Vertx Logger and ConfigProperties was deprecated
- Loading branch information
Showing
13 changed files
with
63 additions
and
68 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
21 changes: 12 additions & 9 deletions
21
...kus-properties-config-all/src/main/java/io/quarkus/qe/config/AntagonistConfiguration.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,18 @@ | ||
package io.quarkus.qe.config; | ||
|
||
import io.quarkus.arc.config.ConfigProperties; | ||
import io.smallrye.config.ConfigMapping; | ||
|
||
@ConfigProperties(prefix = "antagonist") | ||
public class AntagonistConfiguration { | ||
public String message; | ||
public String name; | ||
public AntagonistWifeConfig wife; | ||
@ConfigMapping(prefix = "antagonist") | ||
public interface AntagonistConfiguration { | ||
String message(); | ||
|
||
public static class AntagonistWifeConfig { | ||
public String name; | ||
public String message; | ||
String name(); | ||
|
||
AntagonistWifeConfig wife(); | ||
|
||
interface AntagonistWifeConfig { | ||
String name(); | ||
|
||
String message(); | ||
} | ||
} |
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: 7 additions & 9 deletions
16
...tx-webClient/src/main/java/io/quarkus/qe/vertx/webclient/config/VertxWebClientConfig.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,13 @@ | ||
package io.quarkus.qe.vertx.webclient.config; | ||
|
||
import org.eclipse.microprofile.config.inject.ConfigProperty; | ||
import io.smallrye.config.ConfigMapping; | ||
import io.smallrye.config.WithName; | ||
|
||
import io.quarkus.arc.config.ConfigProperties; | ||
@ConfigMapping(prefix = "vertx.webclient") | ||
public interface VertxWebClientConfig { | ||
|
||
@ConfigProperties(prefix = "vertx.webclient") | ||
public class VertxWebClientConfig { | ||
@WithName("timeout-sec") | ||
long timeout(); | ||
|
||
@ConfigProperty(name = "timeoutSec") | ||
public long timeout; | ||
|
||
@ConfigProperty(name = "retries") | ||
public long retries; | ||
long retries(); | ||
} |
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
17 changes: 7 additions & 10 deletions
17
301-quarkus-vertx-kafka/src/main/java/io/quarkus/qe/kafka/config/VertxKProducerConfig.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.qe.kafka.config; | ||
|
||
import org.eclipse.microprofile.config.inject.ConfigProperty; | ||
import io.smallrye.config.ConfigMapping; | ||
import io.smallrye.config.WithName; | ||
|
||
import io.quarkus.arc.config.ConfigProperties; | ||
@ConfigMapping(prefix = "vertx.kafka.producer") | ||
public interface VertxKProducerConfig { | ||
|
||
@ConfigProperties(prefix = "vertx.kafka.producer") | ||
public class VertxKProducerConfig { | ||
|
||
@ConfigProperty(name = "delayMs") | ||
public long delay; | ||
|
||
@ConfigProperty(name = "batchSize") | ||
public int batchSize; | ||
@WithName("delay-ms") | ||
long delay(); | ||
|
||
int batchSize(); | ||
} |
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
27 changes: 17 additions & 10 deletions
27
302-quarkus-vertx-jwt/src/main/java/io/quarkus/qe/vertx/web/config/AuthNConfig.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,18 +1,25 @@ | ||
package io.quarkus.qe.vertx.web.config; | ||
|
||
import org.eclipse.microprofile.config.inject.ConfigProperty; | ||
import io.smallrye.config.ConfigMapping; | ||
import io.smallrye.config.WithName; | ||
|
||
import io.quarkus.arc.config.ConfigProperties; | ||
@ConfigMapping(prefix = "authN") | ||
public interface AuthNConfig { | ||
String alg(); | ||
|
||
@ConfigProperties(prefix = "authN") | ||
public class AuthNConfig { | ||
public String alg; | ||
String secret(); | ||
|
||
public String secret; | ||
@WithName("tokenLiveSpanMin") | ||
int liveSpan(); | ||
|
||
@ConfigProperty(name = "tokenLiveSpanMin") | ||
public int liveSpan; | ||
@WithName("jwt.claims") | ||
JwtClaims claims(); | ||
|
||
@ConfigProperty(name = "jwt.claims") | ||
public JwtClaims claims; | ||
interface JwtClaims { | ||
String iss(); | ||
|
||
String sub(); | ||
|
||
String aud(); | ||
} | ||
} |
10 changes: 0 additions & 10 deletions
10
302-quarkus-vertx-jwt/src/main/java/io/quarkus/qe/vertx/web/config/JwtClaims.java
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ app.name=Vertx-jwt | |
|
||
authN.alg=HS256 | ||
authN.secret=keepSecret | ||
authN.tokenLiveSpanMin=10 | ||
authN.token-live-span-min=10 | ||
authN.jwt.claims.aud=third_party | ||
authN.jwt.claims.iss=[email protected] | ||
authN.jwt.claims.sub=bff | ||
|
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