Skip to content

Commit

Permalink
Minor code cleanup for microprofile sources detection and addition
Browse files Browse the repository at this point in the history
  • Loading branch information
TFaga committed Dec 15, 2017
1 parent c7fd775 commit 5abaf37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/java/com/kumuluz/ee/EeApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,13 @@ private void initialize() {
extension.getExtension().init(server, eeConfig);

List<ConfigurationSource> sources = extension.getExtension().getConfigurationSources();

if (sources == null || sources.size() == 0) {
sources = Collections.singletonList(extension.getExtension().getConfigurationSource());
}

for (ConfigurationSource source : sources) {

if (source != null) {
source.init(configImpl.getDispatcher());
configImpl.getConfigurationSources().add(source);
Expand Down

0 comments on commit 5abaf37

Please sign in to comment.