public class IgnoreErrorsBindHandler extends AbstractBindHandler
BindHandler
。DEFAULT
コンストラクターと説明 |
---|
IgnoreErrorsBindHandler() |
IgnoreErrorsBindHandler(BindHandler parent) |
onFinish, onStart, onSuccess
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
onCreate
public IgnoreErrorsBindHandler()
public IgnoreErrorsBindHandler(BindHandler 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
- バインディングが有効でない場合