Package com.ibm.websphere.servlet.event
Interface ServletListener
- All Superinterfaces:
EventListener
Event listener interface used for notifications about servlets.
Most of these event have to do with the state management of a
servlet's lifecycle.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Triggered when the servlet has become available to process requests.void
Triggered just after the execution of Servlet.destroy().void
Triggered just after the execution of Servlet.init().void
Triggered just prior to the execution of Servlet.destroy().void
Triggered just prior to the execution of Servlet.init().void
Triggered when the servlet has become unavailable to process requests.void
Triggered when the servlet instance is permanently unloaded from the engine.
-
Method Details
-
onServletStartInit
Triggered just prior to the execution of Servlet.init().- See Also:
-
Servlet.init(javax.servlet.ServletConfig)
-
onServletFinishInit
Triggered just after the execution of Servlet.init().- See Also:
-
Servlet.init(javax.servlet.ServletConfig)
-
onServletStartDestroy
Triggered just prior to the execution of Servlet.destroy().- See Also:
-
Servlet.destroy()
-
onServletFinishDestroy
Triggered just after the execution of Servlet.destroy().- See Also:
-
Servlet.destroy()
-
onServletAvailableForService
Triggered when the servlet has become available to process requests. This event always occurs after the servlet had been initialized and has been made available for execution by clients. This event can also occur when the time has expired on an UnavailableException that was thrown by the servlet.- See Also:
-
UnavailableException
-
onServletUnloaded
Triggered when the servlet instance is permanently unloaded from the engine. This event is always triggered when a servlet instance is going to be dereferenced by the servlet engine. ServletListeners cannot rely on the onServlet[XXX]Destroy events to recognize an unload because the servlet could also be unloaded because it failed to initialize properly. This event guarantees that the listener is notified when the servlet instance is dereferenced by the engine.
-