BindHandler
interface BindHandler
Callback interface that can be used to handle additional logic during element binding.
Author
Phillip Webb
Madhura Bhave
Since
2.0.0
Inheritors
Functions
Link copied to clipboard
open fun onCreate(name: ConfigurationPropertyName, target: Bindable<out Any>, context: BindContext, result: Any): Any
Called when binding of an element ends with an unbound result and a newly created instance is about to be returned.
Link copied to clipboard
open fun onFailure(name: ConfigurationPropertyName, target: Bindable<out Any>, context: BindContext, error: Exception): Any
Link copied to clipboard
open fun onFinish(name: ConfigurationPropertyName, target: Bindable<out Any>, context: BindContext, result: Any)
Called when binding finishes with either bound or unbound result.
Link copied to clipboard
open fun <T> onStart(name: ConfigurationPropertyName, target: Bindable<T>, context: BindContext): Bindable<T>
Called when binding of an element starts but before any result has been determined.
Link copied to clipboard
open fun onSuccess(name: ConfigurationPropertyName, target: Bindable<out Any>, context: BindContext, result: Any): Any
Called when binding of an element ends with a successful result.