public abstract class AbstractBindHandler extends ObjectSE implements BindHandler
BindHandler 実装の抽象基本クラス。DEFAULT| コンストラクターと説明 |
|---|
AbstractBindHandler() 新しいバインディングハンドラーインスタンスを作成します。 |
AbstractBindHandler(BindHandler parent) 特定の親を持つ新しいバインディングハンドラーインスタンスを作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
ObjectSE | onFailure(ConfigurationPropertyName name, Bindable<?> target, BindContext context, ExceptionSE error) |
void | onFinish(ConfigurationPropertyName name, Bindable<?> target, BindContext context, ObjectSE result) プロパティがバインドされたかどうかに関係なく、バインドが終了したときに呼び出されます。 |
<T> Bindable<T> | onStart(ConfigurationPropertyName name, Bindable<T> target, BindContext context) 要素のバインドが開始されたときに、結果が決定される前に呼び出されます。 |
ObjectSE | onSuccess(ConfigurationPropertyName name, Bindable<?> target, BindContext context, ObjectSE result) 要素のバインディングが成功した結果で終了すると呼び出されます。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic AbstractBindHandler()
public AbstractBindHandler(BindHandler parent)
parent - 親ハンドラー public <T> Bindable<T> onStart(ConfigurationPropertyName name, Bindable<T> target, BindContext context)
BindHandlerBindHandler 内の onStart T - バインド可能なソース型 name - バインドされている要素の名前 target - バインドされているアイテム context - バインドコンテキスト null の場合があります)public ObjectSE onSuccess(ConfigurationPropertyName name, Bindable<?> target, BindContext context, ObjectSE result)
BindHandlerBindHandler 内の onSuccess name - バインドされている要素の名前 target - バインドされているアイテム context - バインドコンテキスト result - バインドされた結果 (非 null)null の場合があります)public ObjectSE onFailure(ConfigurationPropertyName name, Bindable<?> target, BindContext context, ExceptionSE error) throws ExceptionSE
BindHandlerBindHandler.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 内の onFailure name - バインドされている要素の名前 target - バインドされているアイテム context - バインドコンテキスト error - エラーの原因 (例外が発生した場合、再スローされる可能性があります)null の場合があります)。ExceptionSE - バインディングが有効でない場合 public void onFinish(ConfigurationPropertyName name, Bindable<?> target, BindContext context, ObjectSE result) throws ExceptionSE
BindHandlerBindHandler 内の onFinish name - バインドされている要素の名前 target - バインドされているアイテム context - バインドコンテキスト result - バインドされた結果 (null の場合があります)ExceptionSE - バインディングが有効でない場合 Copyright © 2019 Pivotal Software, Inc.. All rights reserved.