another Injector to which delegate the binding
Composes two injectors.
Composes two injectors. Polymorphic, needs CanCompose trait implementation available in the scope
injector's type to be composed with
resulting injector's type
other injector to be composed with
CanCompose implementation that will handle the composition of the two injectors
composed injector, depends on CanCompose trait's implementation
Composes two injectors.
Composes two injectors. Note that the operands are inverted because the method starts with ":" Polymorphic, needs CanCompose trait implementation available in the scope
injector's type to be composed with
resulting injector's type
other injector to be composed with
CanCompose implementation that will handle the composition of the two injectors
composed injector, depends on CanCompose trait's implementation
Single binding lookup
Single binding lookup
binding's identifiers
option with binding (None
if not found)
List of bindings lookup
List of bindings lookup
bindings identifiers
list of found bindings
A very simple implementation of an injector that just delegates the binding lookup to some other injector. This will protect the lifecycle of the delegated injector from any changes. It is useful in a case of a scoped binding: if you want to use the injector in a composition, but don't want the composition's lifecycle to influence it. In that case, before creating the composition wrap the injector into the
ImmutableWrapper
.