atg.nucleus
Class ServiceEvent

java.lang.Object
  extended by java.util.EventObject
      extended by atg.nucleus.ServiceEvent
All Implemented Interfaces:
java.io.Serializable

public class ServiceEvent
extends java.util.EventObject

A ServiceEvent encapsulates information related to a ServiceListener's environment on startup and shutdown. This includes the listener's Nucleus, and the service's configuration.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ServiceEvent(java.lang.Object pOriginator, java.lang.Object pService, Nucleus pNucleus, Configuration pServiceConfiguration)
          Constructs a new ServiceEvent
 
Method Summary
 Nucleus getNucleus()
          Returns the Nucleus managing the Service
 java.lang.Object getService()
          Returns the service being started or stopped
 Configuration getServiceConfiguration()
          Returns the Configuration that created the Service
 
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

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

ServiceEvent

public ServiceEvent(java.lang.Object pOriginator,
                    java.lang.Object pService,
                    Nucleus pNucleus,
                    Configuration pServiceConfiguration)
Constructs a new ServiceEvent

Parameters:
pNucleus - the Nucleus managing the Service
pService - the Service being started or stopped
pServiceConfiguration - the Configuration used to create the Service
Method Detail

getService

public java.lang.Object getService()
Returns the service being started or stopped


getNucleus

public Nucleus getNucleus()
Returns the Nucleus managing the Service


getServiceConfiguration

public Configuration getServiceConfiguration()
Returns the Configuration that created the Service