Skip to content

Commit

Permalink
fixes: #67 getConfigSource as sorted array.
Browse files Browse the repository at this point in the history
This is needed as most use cases need the ConfigSources in the effectively sorted order.
They also need it sometimes in descending and for other use cases in ascending ordinal order.
This cannot be achieved by an Iterable in easy ways.
Array has the implicit advantage that it is automatically immutable.

Signed-off-by: Mark Struberg <[email protected]>
  • Loading branch information
struberg committed Mar 10, 2017
1 parent 4351614 commit bf78fec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/src/main/java/org/eclipse/microprofile/config/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ public interface Config {
Iterable<String> getPropertyNames();

/**
* @return all currently registered {@link ConfigSource configsources}
* @return all currently registered {@link ConfigSource configsources} sorted with descending ordinal
*/
Iterable<ConfigSource> getConfigSources();
ConfigSource[] getConfigSources();

}

0 comments on commit bf78fec

Please sign in to comment.