public class DefaultPropertiesPropertySource extends MapPropertySource
MapPropertySource
は、SpringApplication
に直接貢献しました。慣例により、DefaultPropertiesPropertySource
は常に Environment
の最後のプロパティソースです。PropertySource.StubPropertySource
修飾子と型 | フィールドと説明 |
---|---|
static StringSE | NAME ' デフォルトプロパティ ' プロパティソースの名前。 |
logger, name, source
コンストラクターと説明 |
---|
DefaultPropertiesPropertySource(MapSE<StringSE, ObjectSE> source) 指定された Map ソースを使用して新しい DefaultPropertiesPropertySource を作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
static void | addOrMerge(MapSE<StringSE, ObjectSE> source, MutablePropertySources sources) 新しい DefaultPropertiesPropertySource を追加するか、既存の DefaultPropertiesPropertySource とマージします。 |
static boolean | hasMatchingName(PropertySource<?> propertySource) 指定されたソースの名前が "defaultProperties" の場合、 true を返します。 |
static void | ifNotEmpty(MapSE<StringSE, ObjectSE> source, ConsumerSE<DefaultPropertiesPropertySource> action) 提供されたソースが空でない場合は、新しい DefaultPropertiesPropertySource インスタンスの消費を作成します。 |
static void | moveToEnd(ConfigurableEnvironment environment) 'defaultProperties' プロパティソースを、指定された ConfigurableEnvironment の最後のソースになるように移動します。 |
static void | moveToEnd(MutablePropertySources propertySources) 'defaultProperties' プロパティソースを、指定された MutablePropertySources の最後のソースになるように移動します。 |
containsProperty, getProperty, getPropertyNames
equals, getName, getSource, hashCode, named, toString
cloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
public DefaultPropertiesPropertySource(MapSE<StringSE,ObjectSE> source)
Map
ソースを使用して新しい DefaultPropertiesPropertySource
を作成します。source
- ソースマップ public static boolean hasMatchingName(PropertySource<?> propertySource)
true
を返します。propertySource
- チェックするプロパティソース true
public static void ifNotEmpty(MapSE<StringSE,ObjectSE> source, ConsumerSE<DefaultPropertiesPropertySource> action)
DefaultPropertiesPropertySource
インスタンスの消費を作成します。source
- Map
ソース action
- DefaultPropertiesPropertySource
を消費するために使用されるアクション public static void addOrMerge(MapSE<StringSE,ObjectSE> source, MutablePropertySources sources)
DefaultPropertiesPropertySource
を追加するか、既存の DefaultPropertiesPropertySource
とマージします。source
- Map
ソース sources
- 既存のソース public static void moveToEnd(ConfigurableEnvironment environment)
ConfigurableEnvironment
の最後のソースになるように移動します。environment
- 更新する環境 public static void moveToEnd(MutablePropertySources propertySources)
MutablePropertySources
の最後のソースになるように移動します。propertySources
- 更新するプロパティソース