Interface HttpSessionActivationListenerProvider<S,C,L>
- Type Parameters:
S- the specification type for the HttpSessionC- the specification type for the ServletContextL- the specification type for the HttpSessionActivationListener
- All Superinterfaces:
HttpSessionFactory<S,C>
- All Known Subinterfaces:
SpecificationProvider<S,C, AL>
Provides specification behavior for session activation listeners.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptioncreateListener(Consumer<S> prePassivate, Consumer<S> postActivate) Creates a specification implementation with the specified pre-passivate and post-activate logic.Returns the HttpSessionActivationListener specification interface.postActivateNotifier(L listener) Creates a post-activate notifier for the specified listener.prePassivateNotifier(L listener) Creates a pre-passivate notifier for the specified listener.Methods inherited from interface org.wildfly.clustering.web.session.HttpSessionFactory
createHttpSession
-
Method Details
-
getHttpSessionActivationListenerClass
Returns the HttpSessionActivationListener specification interface.- Returns:
- the HttpSessionActivationListener specification interface
-
prePassivateNotifier
Creates a pre-passivate notifier for the specified listener.- Parameters:
listener- the specification listener- Returns:
- a consumer for a session
-
postActivateNotifier
Creates a post-activate notifier for the specified listener.- Parameters:
listener- the specification listener- Returns:
- a consumer for a session
-
createListener
Creates a specification implementation with the specified pre-passivate and post-activate logic.- Parameters:
prePassivate- a pre-passivate event consumer for a sessionpostActivate- a post-activate event consumer for a session- Returns:
- a specification listener implementation
-