Class DestructionCallbackBindingListener
java.lang.Object
org.springframework.web.context.request.DestructionCallbackBindingListener
- All Implemented Interfaces:
HttpSessionBindingListener
,Serializable
,EventListener
public class DestructionCallbackBindingListener
extends Object
implements HttpSessionBindingListener, Serializable
Adapter that implements the Servlet HttpSessionBindingListener interface,
wrapping a session destruction callback.
-
Constructor Summary
ConstructorDescriptionDestructionCallbackBindingListener
(Runnable destructionCallback) Create a new DestructionCallbackBindingListener for the given callback. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
-
Constructor Details
-
DestructionCallbackBindingListener
Create a new DestructionCallbackBindingListener for the given callback.- Parameters:
destructionCallback
- the Runnable to execute when this listener object gets unbound from the session
-
-
Method Details
-
valueBound
- Specified by:
valueBound
in interfaceHttpSessionBindingListener
-
valueUnbound
- Specified by:
valueUnbound
in interfaceHttpSessionBindingListener
-