NoUnboundElementsBindHandler

BindHandler to enforce that all configuration properties under the root name have been bound.

Author

Phillip Webb

Madhura Bhave

Since

2.0.0

Constructors

Link copied to clipboard
constructor(parent: BindHandler)
constructor(parent: BindHandler, filter: (ConfigurationPropertySource) -> Boolean)

Properties

Link copied to clipboard
Default no-op bind handler.

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
Called when binding fails for any reason (including failures from onSuccess or onCreate calls).
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.