With

abstract fun <T : Any> With(valueType: TypeToken<out T>, value: T)

Binds the previously given tag to the given instance.

Parameters

T

The type of value to bind.

value

The instance to bind.

valueType

The type to bind the instance to.

Throws

If this bindings overrides an existing binding and is not allowed to.