AbstractThe type of value that this binding holds.
Create a new instance of ResolverBinding.
The type of value that this binding holds.
ProtectedresolvedWhether the value has been resolved at least once.
Tracked explicitly (not inferred from value !== undefined) so a binding whose resolved
value is legitimately undefined is still considered resolved — preserving the singleton
guarantee and avoiding repeated resolver side effects.
Protected ReadonlyresolverThe resolver function used to provide the binding value.
This function will be called when the value is needed, allowing for lazy instantiation
and dependency resolution. It should return an instance of type V.
Protected OptionalvalueThe value held by the binding.
This value is resolved at runtime, either directly or through a resolver function.
ProtectedisCheck if the value has been resolved.
A boolean indicating whether the value has been resolved.
AbstractresolveResolve and return the value of the binding.
This abstract method must be implemented by subclasses to provide specific resolution logic.
The container to resolve dependencies from.
The resolved value of the binding.
Class representing a ResolverBinding.
This class extends the Binding class, using a resolver function to lazily resolve the value when needed.
Author
Mr. Stone evensstone@gmail.com