org.apache.catalina
Class InstanceEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--org.apache.catalina.InstanceEvent
All Implemented Interfaces:
java.io.Serializable

public final class InstanceEvent
extends java.util.EventObject

General event for notifying listeners of significant events related to a specific instance of a servlet, as opposed to the Wrapper component that manages it.

Version:
$Revision: 1.1 $ $Date: 2000/08/11 05:24:07 $
Author:
Craig R. McClanahan
See Also:
Serialized Form

Field Summary
static java.lang.String AFTER_DESTROY_EVENT
          The event indicating that the destroy() method has returned.
static java.lang.String AFTER_INIT_EVENT
          The event indicating that the init() method has returned.
static java.lang.String AFTER_SERVICE_EVENT
          The event indicating that the service() method has returned.
static java.lang.String BEFORE_DESTROY_EVENT
          The event indicating that the destroy method is about to be called for this instance.
static java.lang.String BEFORE_INIT_EVENT
          The event indicating that the init() method is about to be called for this instance.
static java.lang.String BEFORE_SERVICE_EVENT
          The event indicating that the service() method is about to be called for this instance.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
InstanceEvent(Wrapper wrapper, javax.servlet.Servlet servlet, java.lang.String type)
          Construct a new InstanceEvent with the specified parameters.
 
Method Summary
 javax.servlet.Servlet getServlet()
          Return the servlet instance for which this event occurred.
 java.lang.String getType()
          Return the event type of this event.
 Wrapper getWrapper()
          Return the Wrapper managing the servlet instance for which this event occurred.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BEFORE_INIT_EVENT

public static final java.lang.String BEFORE_INIT_EVENT
The event indicating that the init() method is about to be called for this instance.

AFTER_INIT_EVENT

public static final java.lang.String AFTER_INIT_EVENT
The event indicating that the init() method has returned.

BEFORE_SERVICE_EVENT

public static final java.lang.String BEFORE_SERVICE_EVENT
The event indicating that the service() method is about to be called for this instance.

AFTER_SERVICE_EVENT

public static final java.lang.String AFTER_SERVICE_EVENT
The event indicating that the service() method has returned.

BEFORE_DESTROY_EVENT

public static final java.lang.String BEFORE_DESTROY_EVENT
The event indicating that the destroy method is about to be called for this instance.

AFTER_DESTROY_EVENT

public static final java.lang.String AFTER_DESTROY_EVENT
The event indicating that the destroy() method has returned.
Constructor Detail

InstanceEvent

public InstanceEvent(Wrapper wrapper,
                     javax.servlet.Servlet servlet,
                     java.lang.String type)
Construct a new InstanceEvent with the specified parameters.
Parameters:
wrapper - Wrapper managing this servlet instance
servlet - Servlet instance for which this event occurred
type - Event type (required)
Method Detail

getServlet

public javax.servlet.Servlet getServlet()
Return the servlet instance for which this event occurred.

getType

public java.lang.String getType()
Return the event type of this event.

getWrapper

public Wrapper getWrapper()
Return the Wrapper managing the servlet instance for which this event occurred.


Copyright © 2000 Apache Software Foundation. All Rights Reserved.