diff --git a/cdi/src/main/java/io/smallrye/config/inject/ConfigExtension.java b/cdi/src/main/java/io/smallrye/config/inject/ConfigExtension.java index 2f63d3011..2937880d5 100644 --- a/cdi/src/main/java/io/smallrye/config/inject/ConfigExtension.java +++ b/cdi/src/main/java/io/smallrye/config/inject/ConfigExtension.java @@ -163,4 +163,8 @@ private static boolean isClassHandledByConfigProducer(Type requiredType) { || requiredType == Supplier.class || requiredType == ConfigValue.class; } + + protected Set getInjectionPoints() { + return injectionPoints; + } } diff --git a/cdi/src/main/java/io/smallrye/config/inject/ConfigProducerUtil.java b/cdi/src/main/java/io/smallrye/config/inject/ConfigProducerUtil.java index c22c49bd4..304f580f0 100644 --- a/cdi/src/main/java/io/smallrye/config/inject/ConfigProducerUtil.java +++ b/cdi/src/main/java/io/smallrye/config/inject/ConfigProducerUtil.java @@ -30,9 +30,10 @@ * * @author Gunnar Hilling */ -public class ConfigProducerUtil { +public final class ConfigProducerUtil { private ConfigProducerUtil() { + throw new UnsupportedOperationException(); } public static T getValue(InjectionPoint injectionPoint, Config config) { @@ -151,7 +152,7 @@ public static String getDefaultValue(InjectionPoint injectionPoint) { return null; } - static String getConfigKey(InjectionPoint ip, ConfigProperty configProperty) { + public static String getConfigKey(InjectionPoint ip, ConfigProperty configProperty) { String key = configProperty.name(); if (!key.trim().isEmpty()) { return key;