クラス DefaultDataBinderFactory

java.lang.ObjectSE
org.springframework.web.bind.support.DefaultDataBinderFactory
実装されたすべてのインターフェース:
WebDataBinderFactory
既知の直属サブクラス
InitBinderDataBinderFactory

public class DefaultDataBinderFactory extends ObjectSE implements WebDataBinderFactory
WebRequestDataBinder インスタンスを作成し、WebBindingInitializer で初期化します。
導入:
3.1
作成者:
Rossen Stoyanchev
  • コンストラクターの詳細

    • DefaultDataBinderFactory

      public DefaultDataBinderFactory(@Nullable WebBindingInitializer initializer)
      新しい DefaultDataBinderFactory インスタンスを作成します。
      パラメーター:
      initializer - グローバルデータバインダーの初期化用 (または、存在しない場合は null )
  • メソッドの詳細

    • createBinder

      public final WebDataBinder createBinder(NativeWebRequest webRequest, @Nullable ObjectSE target, StringSE objectName) throws ExceptionSE
      指定されたターゲットオブジェクトの新しい WebDataBinder を作成し、WebBindingInitializer を介して初期化します。
      次で指定:
      インターフェース WebDataBinderFactorycreateBinder 
      パラメーター:
      webRequest - 現在のリクエスト
      target - データバインダーを作成するオブジェクト、または単純型のバインダーを作成する場合は null 
      objectName - ターゲットオブジェクトの名前
      戻り値:
      作成された WebDataBinder インスタンス、null にはならない
      例外:
      ExceptionSE - 無効な状態または引数の場合
    • createBinderInstance

      protected WebDataBinder createBinderInstance(@Nullable ObjectSE target, StringSE objectName, NativeWebRequest webRequest) throws ExceptionSE
      WebDataBinder インスタンスを作成するための拡張ポイント。デフォルトでは、これは WebRequestDataBinder です。
      パラメーター:
      target - バインディングターゲット、または型変換専用の null 
      objectName - バインディングターゲットオブジェクト名
      webRequest - 現在のリクエスト
      例外:
      ExceptionSE - 無効な状態または引数の場合
    • initBinder

      protected void initBinder(WebDataBinder dataBinder, NativeWebRequest webRequest) throws ExceptionSE
      WebBindingInitializer による「グローバル」初期化の後に、作成されたデータバインダーインスタンスを(たとえば @InitBinder メソッドを使用して)初期化するための拡張ポイント。
      パラメーター:
      dataBinder - カスタマイズするデータバインダーインスタンス
      webRequest - 現在のリクエスト
      例外:
      ExceptionSE - 初期化が失敗した場合