We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When creating a ConfigMapping, converters are looked up via Converters.Implicit.getConverter((Class<?>) clazz) which looks like:
ConfigMapping
Converters.Implicit.getConverter((Class<?>) clazz)
static <T> Converter<T> getConverter(Class<? extends T> clazz) { if (clazz.isEnum()) { return new HyphenateEnumConverter(clazz); } // implicit converters required by the specification Converter<T> converter = getConverterFromStaticMethod(clazz, "of", String.class); if (converter == null) { converter = getConverterFromStaticMethod(clazz, "of", CharSequence.class); if (converter == null) { converter = getConverterFromStaticMethod(clazz, "valueOf", String.class); if (converter == null) { converter = getConverterFromStaticMethod(clazz, "valueOf", CharSequence.class); if (converter == null) { converter = getConverterFromStaticMethod(clazz, "parse", String.class); if (converter == null) { converter = getConverterFromStaticMethod(clazz, "parse", CharSequence.class); if (converter == null) { converter = getConverterFromConstructor(clazz, String.class); if (converter == null) { converter = getConverterFromConstructor(clazz, CharSequence.class); } } } } } } } return converter; }
In a Quarkus context, we already know this information and could pass it to Smallrye Config could we not?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When creating a
ConfigMapping
, converters are looked up viaConverters.Implicit.getConverter((Class<?>) clazz)
which looks like:In a Quarkus context, we already know this information and could pass it to Smallrye Config could we not?
The text was updated successfully, but these errors were encountered: