Interface IAquimaSessionLifecycle
- All Known Subinterfaces:
IAquimaSession
IAquimaSession
instances.
Sessions have state and transient dependencies. When a session is serialized to a session store, only the state is serialized. When a session is deserialized from the session store, it is missing its transient dependencies and is unable to function correctly.
Passivation: This lifecycle phase allows a session to do any necessary cleanup before it is serialized. Once a session is passivated it should be considered invalid for further use until it is activated again. Under normal circumstances, passivation should be followed by serialization to a session store.
Activation: This lifecycle phase allows a session to restore its transient dependencies after having been deserialized from a session store. It is illegal to activate an already activated session. Under normal circumstances, deserialization should be followed by activation.
- Since:
- 11.0
- Author:
- Mihai Bob, Petru Galanton
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activate
(IAquimaSessionActivationContext context) Activates the session.void
Passivates the session.
-
Method Details
-
activate
Activates the session.- Parameters:
context
- The activation context which provides transitive dependencies for the session.
-
passivate
void passivate()Passivates the session.
-