org.springframework.context
Class ApplicationEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.springframework.context.ApplicationEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ContextClosedEvent, ContextRefreshedEvent, RequestHandledEvent

public abstract class ApplicationEvent
extends EventObject

Class to be extended by all application events. Abstract as it doesn't make sense for generic events to be published directly.

Author:
Rod Johnson
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ApplicationEvent(Object source)
          Create a new ApplicationEvent.
 
Method Summary
 long getTimestamp()
          Return the system time in milliseconds when the event happened.
 
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
 

Constructor Detail

ApplicationEvent

public ApplicationEvent(Object source)
Create a new ApplicationEvent.

Parameters:
source - the component that published the event
Method Detail

getTimestamp

public long getTimestamp()
Return the system time in milliseconds when the event happened.



Copyright (C) 2003-2004 The Spring Framework Project.