Package wt.session
Class SessionContext.TempSessionContext
java.lang.Object
wt.session.SessionContext.TempSessionContext
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
- SessionContext
AutoCloseable implementation for establishing a SessionContext for a clearly delimited
scope, restoring the previous SessionContext upon leaving this scope. Usage:
try ( TempSessionContext tempSessionContext = new TempSessionContext() )
{
... use temporary SessionContext ...
... previous SessionContext is always restored when leaving this scope ...
}
Supported API: true
Extendable: false
-
Method Summary