org.apache.catalina.util
Class 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.

Version:
$Id: InstanceSupport.java,v 1.1 2000/08/11 17:01:50 craigmcc Exp $
Author:
Craig R. McClanahan

Constructor Summary
InstanceSupport(Wrapper wrapper)
          Construct a new InstanceSupport object associated with the specified Instance component.
 
Method Summary
 void addInstanceListener(InstanceListener listener)
          Add a lifecycle event listener to this component.
 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 removeInstanceListener(InstanceListener listener)
          Remove a lifecycle event listener from this component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceSupport

public InstanceSupport(Wrapper wrapper)
Construct a new InstanceSupport object associated with the specified Instance component.
Parameters:
lifecycle - The Instance component that will be the source of events that we fire
Method Detail

addInstanceListener

public void addInstanceListener(InstanceListener listener)
Add a lifecycle event listener to this component.
Parameters:
listener - The listener to add

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.
Parameters:
type - Event type
data - Event data

removeInstanceListener

public void removeInstanceListener(InstanceListener listener)
Remove a lifecycle event listener from this component.
Parameters:
listener - The listener to remove


Copyright © 2000 Apache Software Foundation. All Rights Reserved.