Package javax.servlet
Interface ServletContextListener
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
ContainerInitializer.ServletContainerInitializerServletContextListener
,ContextDetachingSCL
,DebugListener
,ELContextCleaner
,FileCleanerCleanup
,IntrospectorCleaner
,LogbackServletContextListener
,ManagedAttributeListener
Implementations of this interface receive notifications about changes to the
servlet context of the web application they are part of. To receive
notification events, the implementation class must be configured in the
deployment descriptor for the web application.
- Since:
- v 2.3
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Notification that the servlet context is about to be shut down.void
Notification that the web application initialization process is starting.
-
Method Details
-
contextInitialized
Notification that the web application initialization process is starting. All ServletContextListeners are notified of context initialization before any filter or servlet in the web application is initialized.- Parameters:
sce
- Information about the ServletContext that was initialized
-
contextDestroyed
Notification that the servlet context is about to be shut down. All servlets and filters have been destroy()ed before any ServletContextListeners are notified of context destruction.- Parameters:
sce
- Information about the ServletContext that was destroyed
-