A helper method of creating a new session and an instance of A.
A helper method of creating a new session and an instance of A. This method is useful when you only need to use A as an entry point of your program. After executing the body, the sesion will be closed.
Generates a minimized design by removing overwritten bindings
Generates a minimized design by removing overwritten bindings
Create a new session.
Create a new session.
With this method, the session will not start automatically. You need to explicitly call session.start and session.shutdown to start/terminate the lifecycle of objects
Method for configuring the session in details
Method for configuring the session in details
Execute a given code block by building A using this design, and return B
Execute a given code block by building A using this design, and return B
Used for casting itself as Design if returning DesignWithContext type is cumbersome
Used for casting itself as Design if returning DesignWithContext type is cumbersome
Do not initialize singletons for debugging
Do not initialize singletons for debugging
Enable eager initialization of singletons services for production mode
Enable eager initialization of singletons services for production mode
Run the code block with a new session.
Run the code block with a new session.
This method will create a new session, start it, run the given code block, and finally terminate the session after the code block completion.
Use a custom binding tracer
Use a custom binding tracer
(Since version ) see corresponding Javadoc for more information.