SimpleEnvironmentBasedScope
An injection scope that delegates the injection to the given environment, without any support for injecting from meta-environments.
Use the EnvironmentBasedScope constructor function to create the appropriate instance.
Properties
Functions
DSL for injecting factory-made objects. Usage is factory from scope
.
Create an injector for the given identifier. The behavior of the injection depends on the injection environment, but this is guaranteed to return an element of type T.
Create an injector for the given identifier. See InjectionScope.inject for more information.
Create an injector for the given class, turned to an identifier, and an optional qualifier. See InjectionScope.inject for more information.
Create an injector for the given identifier. If such an identifier cannot be found within the environment, returns null (unlike inject which throws a ComponentNotFoundException).
Create an injector for the given class and optional qualifier. If such an identifier cannot be found within the environment, returns null (unlike other functions which throw a ComponentNotFoundException).