In MicroProfile Config, a config value with unescaped commas may be
Collection. It works for simple cases, but it becomes cumbersome and limited for more advanced use cases.
Indexed Properties provide a way to use indexes in config property names to map specific elements in a
type. Since the indexed element is part of the property name, it can also map complex object types. Consider:
The indexed property syntax uses the property name and square brackets with an index in between.
A call to
Config#getValues("my.collection", String.class), will automatically create and convert a
that contains the values
turtle. A call to
returns the exact same result. For compatibility reasons, if SmallRye Config finds the same property name in their
indexed and unindexed format, the unindexed value has priority.
The indexed property is sorted by its index before being added to the target
Collection. Any gaps in the indexes do
not resolve to the target
Collection, which means that the
Collection result will store all values without empty