Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.springframework.web.context.request
Class DestructionCallbackBindingListener

    java.lang.Object
      org.springframework.web.context.request.DestructionCallbackBindingListener

All Implemented Interfaces:
  java.io.Serializable, java.util.EventListener, javax.servlet.http.HttpSessionBindingListener

    public class DestructionCallbackBindingListener

extends java.lang.Object
implements javax.servlet.http.HttpSessionBindingListener, java.io.Serializable

Adapter that implements the Servlet 2.3 HttpSessionBindingListener interface, wrapping a session destruction callback.

Since:
  3.0
Author:
  Juergen Hoeller
See Also:
  `RequestAttributes.registerDestructionCallback(java.lang.String, java.lang.Runnable, int)`, `ServletRequestAttributes.registerSessionDestructionCallback(java.lang.String, java.lang.Runnable)`, Serialized Form

Constructor Summary
`DestructionCallbackBindingListener(java.lang.Runnable destructionCallback)` Create a new DestructionCallbackBindingListener for the given callback.

Method Summary
`void` | `valueBound(javax.servlet.http.HttpSessionBindingEvent event)`
`void` | `valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DestructionCallbackBindingListener

    public DestructionCallbackBindingListener(java.lang.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 Detail

### valueBound

    public void valueBound(javax.servlet.http.HttpSessionBindingEvent event)

  Specified by:
    `valueBound` in interface `javax.servlet.http.HttpSessionBindingListener`

### valueUnbound

    public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)

  Specified by:
    `valueUnbound` in interface `javax.servlet.http.HttpSessionBindingListener`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD