public class IgnoreTopLevelConverterNotFoundBindHandler extends AbstractBindHandler
ConverterNotFoundException
を無視するために使用できる BindHandler
。DEFAULT
コンストラクターと説明 |
---|
IgnoreTopLevelConverterNotFoundBindHandler() 新しい IgnoreTopLevelConverterNotFoundBindHandler インスタンスを作成します。 |
IgnoreTopLevelConverterNotFoundBindHandler(BindHandler parent) 特定の親を持つ新しい IgnoreTopLevelConverterNotFoundBindHandler インスタンスを作成します。 |
onFinish, onStart, onSuccess
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
onCreate
public IgnoreTopLevelConverterNotFoundBindHandler()
IgnoreTopLevelConverterNotFoundBindHandler
インスタンスを作成します。public IgnoreTopLevelConverterNotFoundBindHandler(BindHandler parent)
IgnoreTopLevelConverterNotFoundBindHandler
インスタンスを作成します。parent
- 親ハンドラー 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
- バインディングが有効でない場合