bind
Attaches a binding to the DI container
Parameters
The type of value to bind.
The tag to bind.
Whether this bind must or must not override an existing binding.
Starts the binding of a given type with a given tag.
T generics will be erased!
Return
The binder: call DI.Builder.TypeBinder.with on it to finish the binding syntax and register the binding.
Parameters
The type to bind.
The tag to bind.
Whether this bind must, may or must not override an existing binding.
Binds a class type to a dependency injection (DI) builder.
Return
A TypeBinder instance that allows further customisation of the binding.
Parameters
The class to be bound.
An optional tag to associate with the binding, used to differentiate bindings of the same type.
An optional boolean indicating if the binding should override existing bindings. Default is null.