接口 WebSessionListener

所有超级接口:
EventListener
所有已知实现类:
PersistenceSessionRepository.PersisterDestructionCallback, WebSessionMutexListener

public interface WebSessionListener extends EventListener
Interface for receiving notification events about WebSession lifecycle changes.

In order to receive these notification events, the implementation class must be either declared in the deployment descriptor of the web application

Implementations of this interface are invoked at their sessionCreated(cn.taketoday.session.WebSessionEvent) method in the order in which they have been declared, and at their sessionDestroyed(cn.taketoday.session.WebSessionEvent) method in reverse order.

从以下版本开始:
4.0 2022/4/9 09:56
作者:
Harry Yang
另请参阅:
  • 方法概要

    修饰符和类型
    方法
    说明
    default void
    Receives notification that a session has been created.
    default void
    Receives notification that a session is about to be invalidated.
  • 方法详细资料

    • sessionCreated

      default void sessionCreated(WebSessionEvent se)
      Receives notification that a session has been created.

      The default implementation takes no action.

      参数:
      se - the WebSessionEvent containing the session
    • sessionDestroyed

      default void sessionDestroyed(WebSessionEvent se)
      Receives notification that a session is about to be invalidated.

      The default implementation takes no action.

      参数:
      se - the WebSessionEvent containing the session