Support class to assist in firing InstanceEvent notifications to
registered InstanceListeners.
addInstanceListener
public void addInstanceListener(InstanceListener listener)
Add a lifecycle event listener to this component.
listener
- The listener to add
fireInstanceEvent
public void fireInstanceEvent(String type,
Filter filter)
Notify all lifecycle event listeners that a particular event has
occurred for this Container. The default implementation performs
this notification synchronously using the calling thread.
type
- Event typefilter
- The relevant Filter for this event
fireInstanceEvent
public void fireInstanceEvent(String type,
Filter filter,
ServletRequest request,
ServletResponse response)
Notify all lifecycle event listeners that a particular event has
occurred for this Container. The default implementation performs
this notification synchronously using the calling thread.
type
- Event typefilter
- The relevant Filter for this eventrequest
- The servlet request we are processingresponse
- The servlet response we are processing
fireInstanceEvent
public void fireInstanceEvent(String type,
Filter filter,
ServletRequest request,
ServletResponse response,
Throwable exception)
Notify all lifecycle event listeners that a particular event has
occurred for this Container. The default implementation performs
this notification synchronously using the calling thread.
type
- Event typefilter
- The relevant Filter for this eventrequest
- The servlet request we are processingresponse
- The servlet response we are processingexception
- Exception that occurred
fireInstanceEvent
public void fireInstanceEvent(String type,
Filter filter,
Throwable exception)
Notify all lifecycle event listeners that a particular event has
occurred for this Container. The default implementation performs
this notification synchronously using the calling thread.
type
- Event typefilter
- The relevant Filter for this eventexception
- Exception that occurred
fireInstanceEvent
public void fireInstanceEvent(String type,
Servlet servlet)
Notify all lifecycle event listeners that a particular event has
occurred for this Container. The default implementation performs
this notification synchronously using the calling thread.
type
- Event typeservlet
- The relevant Servlet for this event
fireInstanceEvent
public void fireInstanceEvent(String type,
Servlet servlet,
ServletRequest request,
ServletResponse response)
Notify all lifecycle event listeners that a particular event has
occurred for this Container. The default implementation performs
this notification synchronously using the calling thread.
type
- Event typeservlet
- The relevant Servlet for this eventrequest
- The servlet request we are processingresponse
- The servlet response we are processing
fireInstanceEvent
public void fireInstanceEvent(String type,
Servlet servlet,
ServletRequest request,
ServletResponse response,
Throwable exception)
Notify all lifecycle event listeners that a particular event has
occurred for this Container. The default implementation performs
this notification synchronously using the calling thread.
type
- Event typeservlet
- The relevant Servlet for this eventrequest
- The servlet request we are processingresponse
- The servlet response we are processingexception
- Exception that occurred
fireInstanceEvent
public void fireInstanceEvent(String type,
Servlet servlet,
Throwable exception)
Notify all lifecycle event listeners that a particular event has
occurred for this Container. The default implementation performs
this notification synchronously using the calling thread.
type
- Event typeservlet
- The relevant Servlet for this eventexception
- Exception that occurred
getWrapper
public Wrapper getWrapper()
Return the Wrapper with which we are associated.
removeInstanceListener
public void removeInstanceListener(InstanceListener listener)
Remove a lifecycle event listener from this component.
listener
- The listener to remove