ServletListenerRegistrationBean
A ServletContextInitializer to register EventListeners in a Servlet 3.0+ container. Similar to the registration features provided by ServletContext but with a Spring Bean friendly design. This bean can be used to register the following types of listener:
- ServletContextAttributeListener
- ServletRequestListener
- ServletRequestAttributeListener
- HttpSessionAttributeListener
- HttpSessionIdListener
- HttpSessionListener
- ServletContextListener
Author
Dave Syer
Phillip Webb
Since
1.4.0
Parameters
<T>
the type of listener
Constructors
Link copied to clipboard
constructor()
Create a new ServletListenerRegistrationBean instance.
Create a new ServletListenerRegistrationBean instance.