Save This Page
Home » spring-framework-2.5.4 » org.springframework » context » [javadoc | source]
org.springframework.context
abstract public class: ApplicationEvent [javadoc | source]
java.lang.Object
   java.util.EventObject
      org.springframework.context.ApplicationEvent

All Implemented Interfaces:
    Serializable

Direct Known Subclasses:
    ServletRequestHandledEvent, ContextRefreshedEvent, ApplicationContextEvent, ContextClosedEvent, ContextStoppedEvent, ContextStartedEvent, RequestHandledEvent, PortletRequestHandledEvent

Class to be extended by all application events. Abstract as it doesn't make sense for generic events to be published directly.
Constructor:
 public ApplicationEvent(Object source) 
    Create a new ApplicationEvent.
    Parameters:
    source - the component that published the event (never null)
Method from org.springframework.context.ApplicationEvent Summary:
getTimestamp
Methods from java.util.EventObject:
getSource,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.context.ApplicationEvent Detail:
 public final long getTimestamp() 
    Return the system time in milliseconds when the event happened.