org.apache.catalina.util
クラス InstanceSupport

java.lang.Object
  |
  +--org.apache.catalina.util.InstanceSupport

public final class InstanceSupport
extends java.lang.Object

Support class to assist in firing InstanceEvent notifications to registered InstanceListeners.

バージョン:
$Id: InstanceSupport.java,v 1.4.2.1 2001/10/12 01:57:41 craigmcc Exp $
作成者:
Craig R. McClanahan

コンストラクタの概要
InstanceSupport(Wrapper wrapper)
          Construct a new InstanceSupport object associated with the specified Instance component.
 
メソッドの概要
 void addInstanceListener(InstanceListener listener)
          Add a lifecycle event listener to this component.
 void fireInstanceEvent(java.lang.String type, javax.servlet.Filter filter)
          Notify all lifecycle event listeners that a particular event has occurred for this Container.
 void fireInstanceEvent(java.lang.String type, javax.servlet.Filter filter, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
          Notify all lifecycle event listeners that a particular event has occurred for this Container.
 void fireInstanceEvent(java.lang.String type, javax.servlet.Filter filter, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, java.lang.Throwable exception)
          Notify all lifecycle event listeners that a particular event has occurred for this Container.
 void fireInstanceEvent(java.lang.String type, javax.servlet.Filter filter, java.lang.Throwable exception)
          Notify all lifecycle event listeners that a particular event has occurred for this Container.
 void fireInstanceEvent(java.lang.String type, javax.servlet.Servlet servlet)
          Notify all lifecycle event listeners that a particular event has occurred for this Container.
 void fireInstanceEvent(java.lang.String type, javax.servlet.Servlet servlet, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
          Notify all lifecycle event listeners that a particular event has occurred for this Container.
 void fireInstanceEvent(java.lang.String type, javax.servlet.Servlet servlet, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, java.lang.Throwable exception)
          Notify all lifecycle event listeners that a particular event has occurred for this Container.
 void fireInstanceEvent(java.lang.String type, javax.servlet.Servlet servlet, java.lang.Throwable exception)
          Notify all lifecycle event listeners that a particular event has occurred for this Container.
 Wrapper getWrapper()
          Return the Wrapper with which we are associated.
 void removeInstanceListener(InstanceListener listener)
          Remove a lifecycle event listener from this component.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

InstanceSupport

public InstanceSupport(Wrapper wrapper)
Construct a new InstanceSupport object associated with the specified Instance component.
パラメータ:
lifecycle - The Instance component that will be the source of events that we fire
メソッドの詳細

getWrapper

public Wrapper getWrapper()
Return the Wrapper with which we are associated.

addInstanceListener

public void addInstanceListener(InstanceListener listener)
Add a lifecycle event listener to this component.
パラメータ:
listener - The listener to add

fireInstanceEvent

public void fireInstanceEvent(java.lang.String type,
                              javax.servlet.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 type
filter - The relevant Filter for this event

fireInstanceEvent

public void fireInstanceEvent(java.lang.String type,
                              javax.servlet.Filter filter,
                              java.lang.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 type
filter - The relevant Filter for this event
exception - Exception that occurred

fireInstanceEvent

public void fireInstanceEvent(java.lang.String type,
                              javax.servlet.Filter filter,
                              javax.servlet.ServletRequest request,
                              javax.servlet.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 type
filter - The relevant Filter for this event
request - The servlet request we are processing
response - The servlet response we are processing

fireInstanceEvent

public void fireInstanceEvent(java.lang.String type,
                              javax.servlet.Filter filter,
                              javax.servlet.ServletRequest request,
                              javax.servlet.ServletResponse response,
                              java.lang.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 type
filter - The relevant Filter for this event
request - The servlet request we are processing
response - The servlet response we are processing
exception - Exception that occurred

fireInstanceEvent

public void fireInstanceEvent(java.lang.String type,
                              javax.servlet.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 type
servlet - The relevant Servlet for this event

fireInstanceEvent

public void fireInstanceEvent(java.lang.String type,
                              javax.servlet.Servlet servlet,
                              java.lang.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 type
servlet - The relevant Servlet for this event
exception - Exception that occurred

fireInstanceEvent

public void fireInstanceEvent(java.lang.String type,
                              javax.servlet.Servlet servlet,
                              javax.servlet.ServletRequest request,
                              javax.servlet.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 type
servlet - The relevant Servlet for this event
request - The servlet request we are processing
response - The servlet response we are processing

fireInstanceEvent

public void fireInstanceEvent(java.lang.String type,
                              javax.servlet.Servlet servlet,
                              javax.servlet.ServletRequest request,
                              javax.servlet.ServletResponse response,
                              java.lang.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 type
servlet - The relevant Servlet for this event
request - The servlet request we are processing
response - The servlet response we are processing
exception - Exception that occurred

removeInstanceListener

public void removeInstanceListener(InstanceListener listener)
Remove a lifecycle event listener from this component.
パラメータ:
listener - The listener to remove


Copyright ? 2000-2001 Apache Software Foundation. All Rights Reserved.