Reference to the design used for creating this session.
Get the object LifeCycleManager of this session.
Name of the session (default: object hash code)
Create a child session with an additional design.
Create a child session with an additional design. The created session has its own singleton hodler and a lifecycle manager.
- Child sessions tries to delegate the object binding to the parent (or ansector) session if no corresponding binding is defined in the child design. - If the parent and ancestors ve no binding for a given type, it will creates a new object in the child session. - If the parent or an ancestor session already initialized a target binding, lifecycle hooks for that binding will not be called in the child session.
Additional design for child session
if true (default) use the same design options (e.g., production mode, life cycle logging) with the parent design
Create a child session with an additional design.
Create a child session with an additional design. The created session shares the same singleton holder and the lifecycle manager with this session.
Register an instance to the session to control the life cycle of the object under this session.
Id of the sesion (= object hash id)
Build an instance of A.
Build an instance of A. In general this method is necessary only when creating an entry point of your application. When feasible avoid using this method so that Airframe can inject objects where bind[X] is used.
object
Create a child session and execute the body part.
Create a child session and execute the body part. The created session has its own singleton holder and lifecycle manager.
Additional design for child session.
Session manages injected objects (e.g., Singleton)