DesignWithContext
DesignWithContext[A] is a wrapper of Design class for chaining lifecycle hooks for the same type A. This can be safely cast to just Design
Value members
Concrete methods
Inherited methods
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.
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.
- Inherited from
- DesignImpl
Generates a minimized design by removing overwritten bindings
Generates a minimized design by removing overwritten bindings
- Inherited from
- Design
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
- Inherited from
- Design
Method for configuring the session in details
Method for configuring the session in details
- Inherited from
- Design
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
- Inherited from
- DesignImpl
Used for casting itself as Design if returning DesignWithContext type is cumbersome
Used for casting itself as Design if returning DesignWithContext type is cumbersome
- Inherited from
- Design
Do not initialize singletons for debugging
Do not initialize singletons for debugging
- Inherited from
- Design
Enable eager initialization of singletons services for production mode
Enable eager initialization of singletons services for production mode
- Inherited from
- Design
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.
- Inherited from
- Design