类 ApplicationEvent
- java.lang.Object
- java.util.EventObject
- org.springframework.context.ApplicationEvent
- 所有已实现的接口:
Serializable
- 直接已知子类:
AbstractSubProtocolEvent,ApplicationContextEvent,BrokerAvailabilityEvent,PayloadApplicationEvent,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.- 作者:
- Rod Johnson, Juergen Hoeller
- 另请参阅:
- 序列化表格
字段概要
从类继承的字段 java.util.EventObject
source
构造器概要
构造器 构造器 说明 ApplicationEvent(Object source)Create a new ApplicationEvent.
构造器详细资料
ApplicationEvent
public ApplicationEvent(Object source)
Create a new ApplicationEvent.- 参数:
source- the object on which the event initially occurred (nevernull)
方法详细资料
getTimestamp
public final long getTimestamp()
Return the system time in milliseconds when the event happened.