类 DestructionCallbackBindingListener
- java.lang.Object
- org.springframework.web.context.request.DestructionCallbackBindingListener
- 所有已实现的接口:
Serializable
,EventListener
,HttpSessionBindingListener
public class DestructionCallbackBindingListener extends Object implements HttpSessionBindingListener, Serializable
Adapter that implements the Servlet HttpSessionBindingListener interface, wrapping a session destruction callback.
构造器概要
构造器 构造器 说明 DestructionCallbackBindingListener(Runnable destructionCallback)
Create a new DestructionCallbackBindingListener for the given callback.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.
构造器详细资料
DestructionCallbackBindingListener
public DestructionCallbackBindingListener(Runnable destructionCallback)
Create a new DestructionCallbackBindingListener for the given callback.- 参数:
destructionCallback
- the Runnable to execute when this listener object gets unbound from the session
方法详细资料
valueBound
public void valueBound(HttpSessionBindingEvent event)
Notifies the object that it is being bound to a session and identifies the session.- 指定者:
valueBound
在接口中HttpSessionBindingListener
- 参数:
event
- the event that identifies the session- 另请参阅:
HttpSessionBindingListener.valueUnbound(javax.servlet.http.HttpSessionBindingEvent)
valueUnbound
public void valueUnbound(HttpSessionBindingEvent event)
Notifies the object that it is being unbound from a session and identifies the session.- 指定者:
valueUnbound
在接口中HttpSessionBindingListener
- 参数:
event
- the event that identifies the session- 另请参阅:
HttpSessionBindingListener.valueBound(javax.servlet.http.HttpSessionBindingEvent)