CurrentSession
interface CurrentSession
Represents a container for all session instances
Functions
Clear session instance for name |
|
Find session name for the specified type or fail if not found |
|
Get session instance for name |
|
Set new session instance with name |
Extension Functions
fun <T> CurrentSession.clear(): Unit Clear session instance with type T |
|
fun <T> CurrentSession.get(): T? Get session instance with type T |
|
fun <T> CurrentSession.getOrSet( Get or generate a new session instance using generator with type T (or name if specified) |
|
fun <T> CurrentSession.set(value: T?): Unit Set session instance with type T |