UnsafeMutableEnvironment
A fully mutable extensible environment implementation with very little safety.
This class should not be used in main code and only within test code that typically requires more flexibility and the ability to add elements on the fly.
You should use the class within a TegralDiBaseTest, although it is not a requirement.
Mutability
You can mutate this environment (i.e. add components) by using any put function you are already used to. You can put
components and modules.
You can also mutate this environment's meta-environment, either by:
using the
meta { }
DSL like you would in ategralDi { }
blockretrieving the meta-environment with metaEnvironment
Characteristics
Eager object creation. Objects are created upon construction of this environment.
Active object injection. Objects are re-injected at every use.
NI/Mutable. Objects can be replaced, injection methods will not always return the same thing.<
Types
Dummy environment kind for use with UnsafeMutableEnvironment.
A simple, mutable environment that can also dispatch requests for a meta-environment to the one passed as a constructor parameter.