public class Binder extends ObjectSE
ConfigurationPropertySources
からのオブジェクトをバインドするコンテナーオブジェクト。コンストラクターと説明 |
---|
Binder(ConfigurationPropertySource... sources) 指定されたソースの新しい Binder インスタンスを作成します。 |
Binder(IterableSE<ConfigurationPropertySource> sources) 指定されたソースの新しい Binder インスタンスを作成します。 |
Binder(IterableSE<ConfigurationPropertySource> sources, PlaceholdersResolver placeholdersResolver) 指定されたソースの新しい Binder インスタンスを作成します。 |
Binder(IterableSE<ConfigurationPropertySource> sources, PlaceholdersResolver placeholdersResolver, ConversionService conversionService) 指定されたソースの新しい Binder インスタンスを作成します。 |
Binder(IterableSE<ConfigurationPropertySource> sources, PlaceholdersResolver placeholdersResolver, ConversionService conversionService, ConsumerSE<PropertyEditorRegistry> propertyEditorInitializer) 指定されたソースの新しい Binder インスタンスを作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
<T> BindResult<T> | bind(ConfigurationPropertyName name, Bindable<T> target) このバインダーの property sources を使用して、指定されたターゲット Bindable をバインドします。 |
<T> BindResult<T> | bind(ConfigurationPropertyName name, Bindable<T> target, BindHandler handler) このバインダーの property sources を使用して、指定されたターゲット Bindable をバインドします。 |
protected <T> T | bind(ConfigurationPropertyName name, Bindable<T> target, BindHandler handler, org.springframework.boot.context.properties.bind.Binder.Context context, boolean allowRecursiveBinding) |
<T> BindResult<T> | bind(StringSE name, Bindable<T> target) このバインダーの property sources を使用して、指定されたターゲット Bindable をバインドします。 |
<T> BindResult<T> | bind(StringSE name, Bindable<T> target, BindHandler handler) このバインダーの property sources を使用して、指定されたターゲット Bindable をバインドします。 |
<T> BindResult<T> | bind(StringSE name, ClassSE<T> target) このバインダーの property sources を使用して、指定されたターゲット Class SE をバインドします。 |
static Binder | get(Environment environment) 指定された環境から新しい Binder インスタンスを作成します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public Binder(ConfigurationPropertySource... sources)
Binder
インスタンスを作成します。DefaultFormattingConversionService
がすべての変換に使用されます。sources
- バインディングに使用されるソース public Binder(IterableSE<ConfigurationPropertySource> sources)
Binder
インスタンスを作成します。DefaultFormattingConversionService
がすべての変換に使用されます。sources
- バインディングに使用されるソース public Binder(IterableSE<ConfigurationPropertySource> sources, PlaceholdersResolver placeholdersResolver)
Binder
インスタンスを作成します。sources
- バインディングに使用されるソース placeholdersResolver
- プロパティのプレースホルダーを解決するための戦略 public Binder(IterableSE<ConfigurationPropertySource> sources, PlaceholdersResolver placeholdersResolver, ConversionService conversionService)
Binder
インスタンスを作成します。sources
- バインディングに使用されるソース placeholdersResolver
- プロパティのプレースホルダーを解決するための戦略 conversionService
- 値を変換する変換サービス (または ApplicationConversionService
を使用するには null
)public Binder(IterableSE<ConfigurationPropertySource> sources, PlaceholdersResolver placeholdersResolver, ConversionService conversionService, ConsumerSE<PropertyEditorRegistry> propertyEditorInitializer)
Binder
インスタンスを作成します。sources
- バインディングに使用されるソース placeholdersResolver
- プロパティのプレースホルダーを解決するための戦略 conversionService
- 値を変換する変換サービス (または ApplicationConversionService
を使用するには null
)propertyEditorInitializer
- 値を変換できるプロパティエディター(または初期化が不要な場合は null
)を構成するために使用される初期化子。多くの場合、ConfigurableBeanFactory.copyRegisteredEditorsTo(org.springframework.beans.PropertyEditorRegistry)
を呼び出すために使用されます。public <T> BindResult<T> bind(StringSE name, ClassSE<T> target)
property sources
を使用して、指定されたターゲット Class
SE をバインドします。T
- バインドされた型 name
- バインドする構成プロパティ名 target
- ターゲットクラス null
)bind(ConfigurationPropertyName, Bindable, BindHandler)
public <T> BindResult<T> bind(StringSE name, Bindable<T> target)
property sources
を使用して、指定されたターゲット Bindable
をバインドします。T
- バインドされた型 name
- バインドする構成プロパティ名 target
- ターゲットのバインド可能 null
)bind(ConfigurationPropertyName, Bindable, BindHandler)
public <T> BindResult<T> bind(ConfigurationPropertyName name, Bindable<T> target)
property sources
を使用して、指定されたターゲット Bindable
をバインドします。T
- バインドされた型 name
- バインドする構成プロパティ名 target
- ターゲットのバインド可能 null
)bind(ConfigurationPropertyName, Bindable, BindHandler)
public <T> BindResult<T> bind(StringSE name, Bindable<T> target, BindHandler handler)
property sources
を使用して、指定されたターゲット Bindable
をバインドします。T
- バインドされた型 name
- バインドする構成プロパティ名 target
- ターゲットのバインド可能 handler
- バインドハンドラー (null
の場合があります)null
)public <T> BindResult<T> bind(ConfigurationPropertyName name, Bindable<T> target, BindHandler handler)
property sources
を使用して、指定されたターゲット Bindable
をバインドします。T
- バインドされた型 name
- バインドする構成プロパティ名 target
- ターゲットのバインド可能 handler
- バインドハンドラー (null
の場合があります)null
)protected final <T> T bind(ConfigurationPropertyName name, Bindable<T> target, BindHandler handler, org.springframework.boot.context.properties.bind.Binder.Context context, boolean allowRecursiveBinding)
public static Binder get(Environment environment)
Binder
インスタンスを作成します。environment
- 環境ソース (ConfigurationPropertySources
がアタッチされている必要があります)Binder
インスタンス Copyright © 2019 Pivotal Software, Inc.. All rights reserved.