Interface SessionEventListenerSpecificationProvider<S,L>
- Type Parameters:
S- the specification type for a sessionL- the specification type for a session passivation listener
public interface SessionEventListenerSpecificationProvider<S,L>
Provides event specification facades to a session manager implementation.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionasEventListener(Object attribute) Fabricates an optional container-specific listener for the specified attribute.asEventListener(Consumer<S> preEvent, Consumer<S> postEvent) Fabricates a specification listener with the specified pre/post event logic.Returns the specification type of the session event listener.Returns a post-event notifier for the specified session event listener.Returns a pre-event notifier for the specified session event listener.
-
Method Details
-
asEventListener
Fabricates an optional container-specific listener for the specified attribute.- Parameters:
attribute- the session attribute event source- Returns:
- an optional container-specific listener.
-
getEventListenerClass
Returns the specification type of the session event listener.- Returns:
- the specification type of the session event listener.
-
preEvent
Returns a pre-event notifier for the specified session event listener.- Parameters:
listener- the specification listener- Returns:
- a consumer for a session
-
postEvent
Returns a post-event notifier for the specified session event listener.- Parameters:
listener- the specification listener- Returns:
- a consumer for a session
-
asEventListener
Fabricates a specification listener with the specified pre/post event logic.- Parameters:
preEvent- a pre-event consumer for a sessionpostEvent- a post-event consumer for a session- Returns:
- a specification listener implementation
-