bind

open fun <T> bind(name: String, target: Class<T>): BindResult<T>

Bind the specified target Class using this binder's property sources.

Return

the binding result (never null)

Parameters

name

the configuration property name to bind

target

the target class

<T>

the bound type

See also


open fun <T> bind(name: String, target: Bindable<T>): BindResult<T>
open fun <T> bind(name: ConfigurationPropertyName, target: Bindable<T>): BindResult<T>

Bind the specified target Bindable using this binder's property sources.

Return

the binding result (never null)

Parameters

name

the configuration property name to bind

target

the target bindable

<T>

the bound type

See also


open fun <T> bind(name: String, target: Bindable<T>, handler: BindHandler): BindResult<T>
open fun <T> bind(name: ConfigurationPropertyName, target: Bindable<T>, handler: BindHandler): BindResult<T>

Bind the specified target Bindable using this binder's property sources.

Return

the binding result (never null)

Parameters

name

the configuration property name to bind

target

the target bindable

handler

the bind handler (may be null)

<T>

the bound type