Interface ContainerProvider.VoidEventListener<CC,S,SC>
- Type Parameters:
CC- the container context typeS- the container session typeSC- 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
-
Nested Class Summary
Nested classes/interfaces inherited from interface ContainerProvider
ContainerProvider.SessionAttributeEventListener<CC,S, L, SC>, ContainerProvider.VoidEventListener<CC, S, SC> -
Method Summary
Modifier and TypeMethodDescriptiongetPostActivateEventNotifier(Void listener) Returns a post-activation event notifier for the specified session event listener.getPrePassivateEventNotifier(Void listener) Returns the pre-passivation event notifier for the specified session event listener.getSessionEventListener(Consumer<S> prePassivateEventNotifier, Consumer<S> postActivateEventNotifier) Composes a specification listener with the specified pre/post event logic.getSessionEventListener(S session, Object attribute) Returns the container specific activation/passivation listener for the specified attribute of the specified session, if one exists.Methods inherited from interface ContainerProvider
getDetachableSession, getDetachedSession, getId
-
Method Details
-
getSessionEventListener
Description copied from interface:ContainerProviderReturns the container specific activation/passivation listener for the specified attribute of the specified session, if one exists.- Specified by:
getSessionEventListenerin interfaceContainerProvider<CC,S, Void, SC> - Parameters:
session- the session event sourceattribute- the session attribute event source- Returns:
- the container specific activation/passivation listener for the specified attribute of the specified session, if one exists.
-
getPostActivateEventNotifier
Description copied from interface:ContainerProviderReturns a post-activation event notifier for the specified session event listener.- Specified by:
getPostActivateEventNotifierin interfaceContainerProvider<CC,S, Void, SC> - Parameters:
listener- the specification listener- Returns:
- a consumer for a session
-
getPrePassivateEventNotifier
Description copied from interface:ContainerProviderReturns the pre-passivation event notifier for the specified session event listener.- Specified by:
getPrePassivateEventNotifierin interfaceContainerProvider<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:ContainerProviderComposes a specification listener with the specified pre/post event logic.- Specified by:
getSessionEventListenerin interfaceContainerProvider<CC,S, Void, SC> - Parameters:
prePassivateEventNotifier- a pre-event consumer for a sessionpostActivateEventNotifier- a post-event consumer for a session- Returns:
- a specification listener implementation
-