Package-level declarations
Types
Concrete eager singleton: will create an instance as soon as di is ready (all bindings are set) and will always return this instance.
An external source can provide to an answer to a retrieval that do not correspond to any binding that is registered in DI.
Concrete instance provider: will always return the given instance.
Concrete multiton: will create one and only one instance for each argument. Will create the instance on first time a given argument is used and will subsequently always return the same instance for the same argument.
Direct DI interface to be passed to provider methods that hold references.
A scope is an object that can return (or create) a ScopeRegistry according to a context.
A registry is responsible managing references inside a scope.
ScopeRegistry that is specialized to hold only one item.
Singleton Binding: will create an instance on first request and will subsequently always return the same instance.
A reference that acts as a Singleton: calls a creator function the first time, and then always return the same instance.
Standard ScopeRegistry implementation.
Second part of the bind<Type>().inSet() with binding
syntax.
Second part of the bind<Type>().inSet() with binding
syntax.
Scope that is not bound to a context (always lives).
Scope that map ScopeRegistry associated to weak contexts.
Indicates that the context of a retrieval is accessible.
Functions
Simple function that types a lambda as a factory function that can be used as the return in the implementation of ExternalSource.getFactory.