I see from the
specification text (the
Javadocs, in this case, on the ConfigSource class) that any given properties file (or presumably classpath resource, which might not be a file) is supposed to have its own
ConfigSource representation: "A ConfigSource provides configuration values from a specific place, like JNDI configuration,
a properties file, etc."
So I suppose that it follows that every MicroProfile Config implementation must have at least
n + 2
ConfigSources, where
n is equal to the number of
/META-INF/microprofile-config.properties resources on the classpath, and the "+ 2" part is to account for system properties and environment variables. So the number of
ConfigSource instances is directly proportional to the number of
/META-INF/microprofile-config.properties classpath resources, and there is no other possibility of representing them while remaining within the bounds of the specification. Is that right, assuming that the "sort-by-name" implication sketched out by the Javadocs on the
getOrdinal() method is also valid?
Please let me know if I've read these tea leaves wrongly.
Best,
Laird