public final class ConfigurationPropertySources extends ObjectSE
ConfigurationPropertySources へのアクセスを提供します。| 修飾子と型 | メソッドと説明 |
|---|---|
static void | attach(Environment environment) 指定された Environment に ConfigurationPropertySource サポートをアタッチします。 |
static IterableSE<ConfigurationPropertySource> | from(IterableSE<PropertySource<?>> sources) |
static IterableSE<ConfigurationPropertySource> | from(PropertySource<?> source) |
static IterableSE<ConfigurationPropertySource> | get(Environment environment) |
static boolean | isAttachedConfigurationPropertySource(PropertySource<?> propertySource) |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic static boolean isAttachedConfigurationPropertySource(PropertySource<?> propertySource)
propertySource - テストするプロパティソース ConfigurationPropertySource の場合は true public static void attach(Environment environment)
Environment に ConfigurationPropertySource サポートをアタッチします。環境によって管理される各 PropertySource を ConfigurationPropertySource に適合させ、従来の PropertySourcesPropertyResolver 呼び出しが configuration property names を使用して解決できるようにします。 アタッチされたリゾルバーは、基になる Environment プロパティソースからの追加または削除を動的に追跡します。
environment - ソース環境 (ConfigurableEnvironment のインスタンスである必要があります)get(Environment)public static IterableSE<ConfigurationPropertySource> get(Environment environment)
environment - ソース環境 (ConfigurableEnvironment のインスタンスである必要があります)IllegalStateExceptionSE - ない場合は、構成プロパティのソースがアタッチされています public static IterableSE<ConfigurationPropertySource> from(PropertySource<?> source)
source - 適応する Spring プロパティソース SpringConfigurationPropertySource を含む IterableSEpublic static IterableSE<ConfigurationPropertySource> from(IterableSE<PropertySource<?>> sources)
PropertySources から適応された新しい ConfigurationPropertySource インスタンスを含む IterableSE を返します。 このメソッドは、ネストされたプロパティソースをすべてフラット化し、すべての stub property sources をフィルターします。イテレータによって返されたソースの変更によって識別される、基になるソースへの更新は自動的に追跡されます。基になるソースは、スレッドセーフである必要があります(MutablePropertySources など)。
sources - 適応する Spring プロパティソース SpringConfigurationPropertySource インスタンスを含む IterableSECopyright © 2019 Pivotal Software, Inc.. All rights reserved.