org.springframework.context
Class ApplicationEvent
java.lang.Object
java.util.EventObject
org.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, Juergen Hoeller
- See Also:
- Serialized Form
Method Summary |
long |
getTimestamp()
Return the system time in milliseconds when the event happened. |
ApplicationEvent
public ApplicationEvent(Object source)
- Create a new ApplicationEvent.
- Parameters:
source
- the component that published the event (never null
)
getTimestamp
public final long getTimestamp()
- Return the system time in milliseconds when the event happened.
Copyright © 2002-2007 The Spring Framework.