com.interface21.context
Class ApplicationEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.interface21.context.ApplicationEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ContextRefreshedEvent, RequestHandledEvent

public abstract class ApplicationEvent
extends java.util.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

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ApplicationEvent(java.lang.Object source)
          Creates 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(java.lang.Object source)
Creates a new ApplicationEvent
Parameters:
source - component that published the event
Method Detail

getTimestamp

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


Rod Johnson and Spring contributors 2001-2003.