ExtensibleEnvironmentBasedScope
class ExtensibleEnvironmentBasedScope(env: ExtensibleInjectionEnvironment) : InjectionScope
Content copied to clipboard
An injection scope that delegates the injection to the given environment (for inject
) or its meta-environment (for meta
).
Use the EnvironmentBasedScope constructor function to create the appropriate instance.
Constructors
Functions
Link copied to clipboard
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.
Link copied to clipboard
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).