Class DestructionCallbackBindingListener

java.lang.Object
org.springframework.web.context.request.DestructionCallbackBindingListener
All Implemented Interfaces:
jakarta.servlet.http.HttpSessionBindingListener, Serializable, EventListener

public class DestructionCallbackBindingListener extends Object implements jakarta.servlet.http.HttpSessionBindingListener, Serializable
Adapter that implements the Servlet HttpSessionBindingListener interface, wrapping a session destruction callback.
Since:
3.0
Author:
Juergen Hoeller
See Also:
  • Constructor Details

    • DestructionCallbackBindingListener

      public DestructionCallbackBindingListener(Runnable destructionCallback)
      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

      public void valueBound(jakarta.servlet.http.HttpSessionBindingEvent event)
      Specified by:
      valueBound in interface jakarta.servlet.http.HttpSessionBindingListener
    • valueUnbound

      public void valueUnbound(jakarta.servlet.http.HttpSessionBindingEvent event)
      Specified by:
      valueUnbound in interface jakarta.servlet.http.HttpSessionBindingListener