Hello everyone,
I am fairly new to MicroProfile, so please excuse me if this was discussed before elsewhere (I did try searching through the forum, but didn't find the answers). I am currently working on microprofile-open-api. So I have been looking through some of the MP repos to understand the code as well as to use some design patterns to maintain consistency.
Within MP Config, the ConfigProvider class contains a static variable of ConfigProviderResolver type - which is later used to retrieve the Config.
private static final ConfigProviderResolver INSTANCE = ConfigProviderResolver.instance();
(1) Does this mean that within an environment/server, it is restricted to having only one implementation of ConfigProviderResolver?
(2) If so, a consumer/user can't (or not allowed to) bring-in another implementation (for some reasons)?
I am trying to understand the restrictions (if any) and the reasons behind the static pattern.
Thank you.