public class DestructionCallbackBindingListener extends Object implements HttpSessionBindingListener, Serializable
| Constructor and Description |
|---|
DestructionCallbackBindingListener(Runnable destructionCallback)
Create a new DestructionCallbackBindingListener for the given callback.
|
| Modifier and Type | Method and Description |
|---|---|
void |
valueBound(HttpSessionBindingEvent event)
Notifies the object that it is being bound to
a session and identifies the session.
|
void |
valueUnbound(HttpSessionBindingEvent event)
Notifies the object that it is being unbound
from a session and identifies the session.
|
public DestructionCallbackBindingListener(Runnable destructionCallback)
destructionCallback - the Runnable to execute when this listener
object gets unbound from the sessionpublic void valueBound(HttpSessionBindingEvent event)
javax.servlet.http.HttpSessionBindingListenervalueBound in interface HttpSessionBindingListenerevent - the event that identifies the
sessionHttpSessionBindingListener.valueUnbound(javax.servlet.http.HttpSessionBindingEvent)public void valueUnbound(HttpSessionBindingEvent event)
javax.servlet.http.HttpSessionBindingListenervalueUnbound in interface HttpSessionBindingListenerevent - the event that identifies
the sessionHttpSessionBindingListener.valueBound(javax.servlet.http.HttpSessionBindingEvent)