Interface HttpSessionActivationListenerProvider<S,C,L>

Type Parameters:
S - the specification type for the HttpSession
C - the specification type for the ServletContext
L - the specification type for the HttpSessionActivationListener
All Superinterfaces:
HttpSessionFactory<S,C>
All Known Subinterfaces:
SpecificationProvider<S,C,AL>

public interface HttpSessionActivationListenerProvider<S,C,L> extends HttpSessionFactory<S,C>
Provides specification behavior for session activation listeners.
Author:
Paul Ferraro
  • Method Details

    • getHttpSessionActivationListenerClass

      Class<L> getHttpSessionActivationListenerClass()
      Returns the HttpSessionActivationListener specification interface.
      Returns:
      the HttpSessionActivationListener specification interface
    • prePassivateNotifier

      Consumer<S> prePassivateNotifier(L listener)
      Creates a pre-passivate notifier for the specified listener.
      Parameters:
      listener - the specification listener
      Returns:
      a consumer for a session
    • postActivateNotifier

      Consumer<S> postActivateNotifier(L listener)
      Creates a post-activate notifier for the specified listener.
      Parameters:
      listener - the specification listener
      Returns:
      a consumer for a session
    • createListener

      L createListener(Consumer<S> prePassivate, Consumer<S> postActivate)
      Creates a specification implementation with the specified pre-passivate and post-activate logic.
      Parameters:
      prePassivate - a pre-passivate event consumer for a session
      postActivate - a post-activate event consumer for a session
      Returns:
      a specification listener implementation