BindConstructorProvider
Strategy interface used to determine a specific constructor to use when binding.
Author
Madhura Bhave
Since
2.2.1
Properties
Link copied to clipboard
Default BindConstructorProvider implementation that only returns a value when there's a single constructor and when the bindable has no existing value.
Functions
Link copied to clipboard
open fun getBindConstructor(type: Class<out Any>, isNestedConstructorBinding: Boolean): Constructor<out Any>
Return the bind constructor to use for the given type, or
null
if constructor binding is not supported.abstract fun getBindConstructor(bindable: Bindable<out Any>, isNestedConstructorBinding: Boolean): Constructor<out Any>
Return the bind constructor to use for the given bindable, or
null
if constructor binding is not supported.