The purpose of this change is to be compliant with the MicroProfile config specification.
- Note that, while SmallRye Config supports {{parse(String)}}, the MP Config specification only mandates the support of {{parse(CharSequence)}} so using CharSequence is probably better. -
=> We'll use of() because it has precedence over valueOf, which has precedence over parse(), according to the MP spec.
This will allow to automatically convert the config values to enums. |
|