Skip to content

Commit

Permalink
Allow to extend more CDI methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
radcortez committed Jul 1, 2020
1 parent dcbf235 commit e9d3471
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,8 @@ private static boolean isClassHandledByConfigProducer(Type requiredType) {
|| requiredType == Supplier.class
|| requiredType == ConfigValue.class;
}

protected Set<InjectionPoint> getInjectionPoints() {
return injectionPoints;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@
*
* @author <a href="https://github.com/guhilling">Gunnar Hilling</a>
*/
public class ConfigProducerUtil {
public final class ConfigProducerUtil {

private ConfigProducerUtil() {
throw new UnsupportedOperationException();
}

public static <T> T getValue(InjectionPoint injectionPoint, Config config) {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit e9d3471

Please sign in to comment.