クラス IgnoreTopLevelConverterNotFoundBindHandler
java.lang.ObjectSE
org.springframework.boot.context.properties.bind.AbstractBindHandler
org.springframework.boot.context.properties.bind.handler.IgnoreTopLevelConverterNotFoundBindHandler
- 実装されたすべてのインターフェース:
BindHandler
最上位の
ConverterNotFoundException
を無視するために使用できる BindHandler
。- 導入:
- 2.0.1
- 作成者:
- Madhura Bhave
フィールドサマリー
インターフェース org.springframework.boot.context.properties.bind.BindHandler から継承されたフィールド
DEFAULT
コンストラクターのサマリー
コンストラクターコンストラクター説明新しいIgnoreTopLevelConverterNotFoundBindHandler
インスタンスを作成します。特定の親を持つ新しいIgnoreTopLevelConverterNotFoundBindHandler
インスタンスを作成します。メソッドのサマリー
修飾子と型メソッド説明onFailure
(ConfigurationPropertyName name, Bindable<?> target, BindContext context, ExceptionSE error) バインドが何らかの理由で失敗した場合に呼び出されます(BindHandler.onSuccess(org.springframework.boot.context.properties.source.ConfigurationPropertyName, org.springframework.boot.context.properties.bind.Bindable<?>, org.springframework.boot.context.properties.bind.BindContext, java.lang.Object)
またはBindHandler.onCreate(org.springframework.boot.context.properties.source.ConfigurationPropertyName, org.springframework.boot.context.properties.bind.Bindable<?>, org.springframework.boot.context.properties.bind.BindContext, java.lang.Object)
呼び出しからの失敗を含む)。クラス org.springframework.boot.context.properties.bind.AbstractBindHandler から継承されたメソッド
onFinish, onStart, onSuccess
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.boot.context.properties.bind.BindHandler から継承されたメソッド
onCreate
コンストラクターの詳細
IgnoreTopLevelConverterNotFoundBindHandler
public IgnoreTopLevelConverterNotFoundBindHandler()新しいIgnoreTopLevelConverterNotFoundBindHandler
インスタンスを作成します。IgnoreTopLevelConverterNotFoundBindHandler
特定の親を持つ新しいIgnoreTopLevelConverterNotFoundBindHandler
インスタンスを作成します。- パラメーター:
parent
- 親ハンドラー
メソッドの詳細
onFailure
public ObjectSE onFailure(ConfigurationPropertyName name, Bindable<?> target, BindContext context, ExceptionSE error) throws ExceptionSE インターフェースからコピーされた説明:BindHandler
バインドが何らかの理由で失敗した場合に呼び出されます(BindHandler.onSuccess(org.springframework.boot.context.properties.source.ConfigurationPropertyName, org.springframework.boot.context.properties.bind.Bindable<?>, org.springframework.boot.context.properties.bind.BindContext, java.lang.Object)
またはBindHandler.onCreate(org.springframework.boot.context.properties.source.ConfigurationPropertyName, org.springframework.boot.context.properties.bind.Bindable<?>, org.springframework.boot.context.properties.bind.BindContext, java.lang.Object)
呼び出しからの失敗を含む)。実装は、例外を飲み込み、代替結果を返すことを選択できます。- 次で指定:
- インターフェース
BindHandler
のonFailure
- オーバーライド:
- クラス
AbstractBindHandler
のonFailure
- パラメーター:
name
- バインドされている要素の名前target
- バインドされているアイテムcontext
- バインドコンテキストerror
- エラーの原因 (例外が発生した場合、再スローされる可能性があります)- 戻り値:
- 使用すべき実際の結果(
null
の場合があります)。 - 例外:
ExceptionSE
- バインディングが有効でない場合