public class DestructionCallbackBindingListener extends java.lang.Object implements HttpSessionBindingListener, java.io.Serializable
Constructor and Description |
---|
DestructionCallbackBindingListener(java.lang.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(java.lang.Runnable destructionCallback)
destructionCallback
- the Runnable to execute when this listener
object gets unbound from the sessionpublic void valueBound(HttpSessionBindingEvent event)
javax.servlet.http.HttpSessionBindingListener
valueBound
in interface HttpSessionBindingListener
event
- the event that identifies the
sessionHttpSessionBindingListener.valueUnbound(javax.servlet.http.HttpSessionBindingEvent)
public void valueUnbound(HttpSessionBindingEvent event)
javax.servlet.http.HttpSessionBindingListener
valueUnbound
in interface HttpSessionBindingListener
event
- the event that identifies
the sessionHttpSessionBindingListener.valueBound(javax.servlet.http.HttpSessionBindingEvent)