public abstract class AbstractSessionEvent
extends org.springframework.context.ApplicationEvent
SessionRepository
implementations that support it, this event is fired when
a Session
is updated.Modifier | Constructor and Description |
---|---|
protected |
AbstractSessionEvent(java.lang.Object source,
java.lang.String sessionId) |
Modifier and Type | Method and Description |
---|---|
<S extends Session> |
getSession()
Gets the
Session that was destroyed. |
java.lang.String |
getSessionId() |
protected AbstractSessionEvent(java.lang.Object source, java.lang.String sessionId)
public <S extends Session> S getSession()
Session
that was destroyed. For some SessionRepository
implementations it may not be possible to get the original session in which case
this may be null.S
- The type of SessionSession
or null if the data store does not support
obtaining itpublic java.lang.String getSessionId()