Interface ContainerProvider.VoidEventListener<CC,S,SC>

Type Parameters:
CC - the container context type
S - the container session type
SC - the session context type
All Superinterfaces:
ContainerProvider<CC,S,Void,SC>
Enclosing interface:
ContainerProvider<CC,S,L,SC>

public static interface ContainerProvider.VoidEventListener<CC,S,SC> extends ContainerProvider<CC,S,Void,SC>
A provider that does not emit passivation/activation events.
Author:
Paul Ferraro
  • Method Details

    • getSessionEventListener

      default Optional<Void> getSessionEventListener(S session, Object attribute)
      Description copied from interface: ContainerProvider
      Returns the container specific activation/passivation listener for the specified attribute of the specified session, if one exists.
      Specified by:
      getSessionEventListener in interface ContainerProvider<CC,S,Void,SC>
      Parameters:
      session - the session event source
      attribute - the session attribute event source
      Returns:
      the container specific activation/passivation listener for the specified attribute of the specified session, if one exists.
    • getPostActivateEventNotifier

      default Consumer<S> getPostActivateEventNotifier(Void listener)
      Description copied from interface: ContainerProvider
      Returns a post-activation event notifier for the specified session event listener.
      Specified by:
      getPostActivateEventNotifier in interface ContainerProvider<CC,S,Void,SC>
      Parameters:
      listener - the specification listener
      Returns:
      a consumer for a session
    • getPrePassivateEventNotifier

      default Consumer<S> getPrePassivateEventNotifier(Void listener)
      Description copied from interface: ContainerProvider
      Returns the pre-passivation event notifier for the specified session event listener.
      Specified by:
      getPrePassivateEventNotifier in interface ContainerProvider<CC,S,Void,SC>
      Parameters:
      listener - the specification listener
      Returns:
      the consumer for a session
    • getSessionEventListener

      default Optional<Void> getSessionEventListener(Consumer<S> prePassivateEventNotifier, Consumer<S> postActivateEventNotifier)
      Description copied from interface: ContainerProvider
      Composes a specification listener with the specified pre/post event logic.
      Specified by:
      getSessionEventListener in interface ContainerProvider<CC,S,Void,SC>
      Parameters:
      prePassivateEventNotifier - a pre-event consumer for a session
      postActivateEventNotifier - a post-event consumer for a session
      Returns:
      a specification listener implementation