SmallRye Config allows injecting multiple configuration parameters as a
Map. The configuration value syntax is
The previous configuration could be injected directly in a CDI Bean:
Map will contains the keys
201, which map to the values
Only the direct sub properties will be converted into a
injected into the target bean, the rest will be ignored. In other words,
in the previous example, a property whose name is
be ignored as not considered as a direct sub property.
The property will be considered as missing if no direct sub properties could be found.
It is also possible to retrieve the
Map programmatically by calling the methods
SmallRyeConfig#getValues("server.reasons", Integer.class, String.class) or
SmallRyeConfig#getOptionalValues("server.reasons", Integer.class, String.class).