I tried the OpenLiberty MP Config Sample (guide-microprofile-config), so far it works. But when analyzing it more closely, I found out that the method getProperties() in the file CustomConfigSource is called several times in repetition. This is a behavior I did not expect. In the file InventoryConfig there are variables injected statically and dynamically (by using "Provider<>"). But this code should only be called when I call a REST Service. So my question what does trigger getProperties() all the times? How can I prevent it. Actually with my implementation I want to access a database and do a query and I wanted to put the logic into getProperties() which now it seems a bad idea.
best regards Igor