|
|
|
|
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
|
|
|
|
/* |
|
|
|
|
* Copyright 2012-2017 the original author or authors. |
|
|
|
|
* Copyright 2012-2018 the original author or authors. |
|
|
|
|
* |
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
|
@ -18,6 +18,7 @@ package org.springframework.boot.context.properties.source;
@@ -18,6 +18,7 @@ package org.springframework.boot.context.properties.source;
|
|
|
|
|
|
|
|
|
|
import java.util.Arrays; |
|
|
|
|
import java.util.Collections; |
|
|
|
|
import java.util.Iterator; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
@ -33,7 +34,8 @@ import org.springframework.util.MultiValueMap;
@@ -33,7 +34,8 @@ import org.springframework.util.MultiValueMap;
|
|
|
|
|
* @since 2.0.0 |
|
|
|
|
* @see ConfigurationPropertySource#withAliases(ConfigurationPropertyNameAliases) |
|
|
|
|
*/ |
|
|
|
|
public final class ConfigurationPropertyNameAliases { |
|
|
|
|
public final class ConfigurationPropertyNameAliases |
|
|
|
|
implements Iterable<ConfigurationPropertyName> { |
|
|
|
|
|
|
|
|
|
private final MultiValueMap<ConfigurationPropertyName, ConfigurationPropertyName> aliases = new LinkedMultiValueMap<>(); |
|
|
|
|
|
|
|
|
|
@ -74,4 +76,9 @@ public final class ConfigurationPropertyNameAliases {
@@ -74,4 +76,9 @@ public final class ConfigurationPropertyNameAliases {
|
|
|
|
|
.findFirst().orElse(null); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public Iterator<ConfigurationPropertyName> iterator() { |
|
|
|
|
return this.aliases.keySet().iterator(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|