This environment factory will produce environments with 2 contexts: the application context and the block context.
An application context is build from two wire definitions: the application wire definition and the environment wire definition.
The application context itself is build from the application wire definition. So all objects that are created in this context remain cached for the lifetime of this application context object.
This application context is also a environment factory. The produced environments contain 2 contexts: the application context itself and a new environment context, build from the environment wire definition. For each created environment, a new environment context will be created from the same environment wire definition. Objects in the environment context will live for as long as the environment.
@author Tom Baeyens
|
|