クラスの使用
org.springframework.boot.context.properties.bind.Bindable
Bindable を使用するパッケージ
org.springframework.boot.context.properties 内の Bindable 使用
org.springframework.boot.context.properties.bind 内の Bindable 使用
修飾子と型メソッド説明Bindable<?> BindException.getTarget()バインドされているターゲットを返します。static <T> Bindable<T> 指定された型の新しいBindableを作成します。static <T> Bindable<T> Bindable.of(ResolvableType type) 指定された型の新しいBindableを作成します。static <T> Bindable<T> Bindable.ofInstance(T instance) インスタンスに等しい既存の値を使用して、指定されたインスタンスの型の新しいBindableを作成します。<T> @Nullable Bindable<T> AbstractBindHandler.onStart(ConfigurationPropertyName name, Bindable<T> target, BindContext context) default <T> @Nullable Bindable<T> BindHandler.onStart(ConfigurationPropertyName name, Bindable<T> target, BindContext context) 要素のバインドが開始されたときに、結果が決定される前に呼び出されます。Bindable.withAnnotations(AnnotationSE @Nullable... annotations) 指定されたアノテーションを使用して、更新されたBindableインスタンスを作成します。Bindable.withBindMethod(@Nullable BindMethod bindMethod) 特定のバインドメソッドを使用して、更新されたBindableインスタンスを作成します。Bindable.withBindRestrictions(Bindable.BindRestriction... additionalRestrictions) 追加のバインド制限を使用して、更新されたBindableインスタンスを作成します。Bindable.withExistingValue(@Nullable T existingValue) 既存の値で更新されたBindableインスタンスを作成します。Bindable.withSuppliedValue(@Nullable SupplierSE<T> suppliedValue) 値サプライヤーで更新されたBindableインスタンスを作成します。型 Bindable のパラメーターを持つ org.springframework.boot.context.properties.bind のメソッド修飾子と型メソッド説明<T> BindResult<T> このバインダーのproperty sourcesを使用して、指定されたターゲットBindableをバインドします。<T> BindResult<T> Binder.bind(StringSE name, Bindable<T> target, @Nullable BindHandler handler) このバインダーのproperty sourcesを使用して、指定されたターゲットBindableをバインドします。<T> BindResult<T> Binder.bind(ConfigurationPropertyName name, Bindable<T> target) このバインダーのproperty sourcesを使用して、指定されたターゲットBindableをバインドします。<T> BindResult<T> Binder.bind(ConfigurationPropertyName name, Bindable<T> target, @Nullable BindHandler handler) このバインダーのproperty sourcesを使用して、指定されたターゲットBindableをバインドします。<T> TBinder.bindOrCreate(StringSE name, Bindable<T> target) このバインダーのproperty sourcesを使用して指定されたターゲットBindableをバインドするか、バインドの結果がnullの場合、Bindableの型を使用して新しいインスタンスを作成します。<T> TBinder.bindOrCreate(StringSE name, Bindable<T> target, BindHandler handler) このバインダーのproperty sourcesを使用して指定されたターゲットBindableをバインドするか、バインドの結果がnullの場合、Bindableの型を使用して新しいインスタンスを作成します。<T> TBinder.bindOrCreate(ConfigurationPropertyName name, Bindable<T> target, @Nullable BindHandler handler) このバインダーのproperty sourcesを使用して指定されたターゲットBindableをバインドするか、バインドの結果がnullの場合、Bindableの型を使用して新しいインスタンスを作成します。BindableRuntimeHintsRegistrar.forBindables(Bindable<?>... bindables) 指定されたバインド可能オブジェクトに対して新しいBindableRuntimeHintsRegistrarを作成します。@Nullable ConstructorSE<?> BindConstructorProvider.getBindConstructor(Bindable<?> bindable, boolean isNestedConstructorBinding) 指定されたバインド可能オブジェクトに使用するバインドコンストラクターを返します。コンストラクターバインディングがサポートされていない場合はnullを返します。default ObjectSEBindHandler.onCreate(ConfigurationPropertyName name, Bindable<?> target, BindContext context, ObjectSE result) 要素のバインドがバインドされていない結果で終了し、新しく作成されたインスタンスが返されるときに呼び出されます。@Nullable ObjectSEAbstractBindHandler.onFailure(ConfigurationPropertyName name, Bindable<?> target, BindContext context, ExceptionSE error) default @Nullable ObjectSEBindHandler.onFailure(ConfigurationPropertyName name, Bindable<?> target, BindContext context, ExceptionSE error) バインドが何らかの理由で失敗した場合に呼び出されます(BindHandler.onSuccess(ConfigurationPropertyName, Bindable, BindContext, Object)またはBindHandler.onCreate(ConfigurationPropertyName, Bindable, BindContext, Object)呼び出しからの失敗を含む)。voidAbstractBindHandler.onFinish(ConfigurationPropertyName name, Bindable<?> target, BindContext context, @Nullable ObjectSE result) default voidBindHandler.onFinish(ConfigurationPropertyName name, Bindable<?> target, BindContext context, @Nullable ObjectSE result) バインドがバインド済みまたはバインドなしの結果で終了したときに呼び出されます。<T> @Nullable Bindable<T> AbstractBindHandler.onStart(ConfigurationPropertyName name, Bindable<T> target, BindContext context) default <T> @Nullable Bindable<T> BindHandler.onStart(ConfigurationPropertyName name, Bindable<T> target, BindContext context) 要素のバインドが開始されたときに、結果が決定される前に呼び出されます。@Nullable ObjectSEAbstractBindHandler.onSuccess(ConfigurationPropertyName name, Bindable<?> target, BindContext context, ObjectSE result) default @Nullable ObjectSEBindHandler.onSuccess(ConfigurationPropertyName name, Bindable<?> target, BindContext context, ObjectSE result) 要素のバインディングが成功した結果で終了すると呼び出されます。@Nullable ObjectSEBoundPropertiesTrackingBindHandler.onSuccess(ConfigurationPropertyName name, Bindable<?> target, BindContext context, ObjectSE result) 型 Bindable の型引数を持つ org.springframework.boot.context.properties.bind のメソッドパラメーター修飾子と型メソッド説明BindableRuntimeHintsRegistrar.forBindables(IterableSE<Bindable<?>> bindables) 指定されたバインド可能オブジェクトに対して新しいBindableRuntimeHintsRegistrarを作成します。型 Bindable のパラメーターを持つ org.springframework.boot.context.properties.bind のコンストラクター修飾子コンストラクター説明protectedBindableRuntimeHintsRegistrar(Bindable<?>... bindables) 指定されたバインド可能オブジェクトに対して新しいBindableRuntimeHintsRegistrarを作成します。org.springframework.boot.context.properties.bind.handler 内の Bindable 使用
修飾子と型メソッド説明<T> @Nullable Bindable<T> NoUnboundElementsBindHandler.onStart(ConfigurationPropertyName name, Bindable<T> target, BindContext context) 型 Bindable のパラメーターを持つ org.springframework.boot.context.properties.bind.handler のメソッド修飾子と型メソッド説明@Nullable ObjectSEIgnoreErrorsBindHandler.onFailure(ConfigurationPropertyName name, Bindable<?> target, BindContext context, ExceptionSE error) @Nullable ObjectSEIgnoreTopLevelConverterNotFoundBindHandler.onFailure(ConfigurationPropertyName name, Bindable<?> target, BindContext context, ExceptionSE error) @Nullable ObjectSENoUnboundElementsBindHandler.onFailure(ConfigurationPropertyName name, Bindable<?> target, BindContext context, ExceptionSE error) voidNoUnboundElementsBindHandler.onFinish(ConfigurationPropertyName name, Bindable<?> target, BindContext context, @Nullable ObjectSE result) <T> @Nullable Bindable<T> NoUnboundElementsBindHandler.onStart(ConfigurationPropertyName name, Bindable<T> target, BindContext context) @Nullable ObjectSENoUnboundElementsBindHandler.onSuccess(ConfigurationPropertyName name, Bindable<?> target, BindContext context, ObjectSE result) org.springframework.boot.context.properties.bind.validation 内の Bindable 使用
修飾子と型メソッド説明<T> @Nullable Bindable<T> ValidationBindHandler.onStart(ConfigurationPropertyName name, Bindable<T> target, BindContext context) 型 Bindable のパラメーターを持つ org.springframework.boot.context.properties.bind.validation のメソッド修飾子と型メソッド説明@Nullable ObjectSEValidationBindHandler.onFailure(ConfigurationPropertyName name, Bindable<?> target, BindContext context, ExceptionSE error) voidValidationBindHandler.onFinish(ConfigurationPropertyName name, Bindable<?> target, BindContext context, @Nullable ObjectSE result) <T> @Nullable Bindable<T> ValidationBindHandler.onStart(ConfigurationPropertyName name, Bindable<T> target, BindContext context) @Nullable ObjectSEValidationBindHandler.onSuccess(ConfigurationPropertyName name, Bindable<?> target, BindContext context, ObjectSE result)