From 230a6264e30c9c3e00263a3d311c9629bbfc8bf4 Mon Sep 17 00:00:00 2001 From: Andrus Adamchik Date: Sat, 9 Dec 2023 10:36:09 -0500 Subject: [PATCH] using module constant to refer to the config prefix --- .../io/bootique/aws2/secrets/AwsSecretsConfigurationLoader.java | 2 +- .../main/java/io/bootique/aws2/secrets/AwsSecretsModule.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bootique-aws2-secrets/src/main/java/io/bootique/aws2/secrets/AwsSecretsConfigurationLoader.java b/bootique-aws2-secrets/src/main/java/io/bootique/aws2/secrets/AwsSecretsConfigurationLoader.java index e92cb1a..fd69c42 100644 --- a/bootique-aws2-secrets/src/main/java/io/bootique/aws2/secrets/AwsSecretsConfigurationLoader.java +++ b/bootique-aws2-secrets/src/main/java/io/bootique/aws2/secrets/AwsSecretsConfigurationLoader.java @@ -74,7 +74,7 @@ public JsonNode updateConfiguration(JsonNode mutableInput) { ObjectMapper jsonMapper = jackson.newObjectMapper(); ConfigurationFactory configFactory = new JsonConfigurationFactory(mutableInput, jsonMapper); - AwsSecretsFactory secretsFactory = configFactory.config(AwsSecretsFactory.class, "awssecrets"); + AwsSecretsFactory secretsFactory = configFactory.config(AwsSecretsFactory.class, AwsSecretsModule.CONFIG_PREFIX); if (secretsFactory.isEmpty()) { return mutableInput; diff --git a/bootique-aws2-secrets/src/main/java/io/bootique/aws2/secrets/AwsSecretsModule.java b/bootique-aws2-secrets/src/main/java/io/bootique/aws2/secrets/AwsSecretsModule.java index b6510b1..5c1c6fe 100644 --- a/bootique-aws2-secrets/src/main/java/io/bootique/aws2/secrets/AwsSecretsModule.java +++ b/bootique-aws2-secrets/src/main/java/io/bootique/aws2/secrets/AwsSecretsModule.java @@ -39,7 +39,7 @@ public static AwsSecretsManagerExtender extend(Binder binder) { return new AwsSecretsManagerExtender(binder); } - private static final String CONFIG_PREFIX = "awssecrets"; + static final String CONFIG_PREFIX = "awssecrets"; @Override public ModuleCrate crate() {