public class SimpSessionScope
extends java.lang.Object
implements org.springframework.beans.factory.config.Scope
Scope implementation exposing the attributes of a SiMP session
(e.g. WebSocket session).
Relies on a thread-bound SimpAttributes instance exported by
SimpAnnotationMethodMessageHandler.
| Constructor and Description |
|---|
SimpSessionScope() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
get(java.lang.String name,
org.springframework.beans.factory.ObjectFactory<?> objectFactory) |
java.lang.String |
getConversationId() |
void |
registerDestructionCallback(java.lang.String name,
java.lang.Runnable callback) |
java.lang.Object |
remove(java.lang.String name) |
java.lang.Object |
resolveContextualObject(java.lang.String key) |
public java.lang.Object get(java.lang.String name,
org.springframework.beans.factory.ObjectFactory<?> objectFactory)
get in interface org.springframework.beans.factory.config.Scopepublic java.lang.Object remove(java.lang.String name)
remove in interface org.springframework.beans.factory.config.Scopepublic void registerDestructionCallback(java.lang.String name,
java.lang.Runnable callback)
registerDestructionCallback in interface org.springframework.beans.factory.config.Scopepublic java.lang.Object resolveContextualObject(java.lang.String key)
resolveContextualObject in interface org.springframework.beans.factory.config.Scopepublic java.lang.String getConversationId()
getConversationId in interface org.springframework.beans.factory.config.Scope