类 ApplicationEvent
java.lang.Object
java.util.EventObject
cn.taketoday.context.ApplicationEvent
- 所有已实现的接口:
Serializable
Class to be extended by all application events. Abstract as it
doesn't make sense for generic events to be published directly.
- 从以下版本开始:
- 2018-09-09 21:23
- 作者:
- Rod Johnson, Juergen Hoeller, TODAY
- 另请参阅:
-
字段概要
从类继承的字段 java.util.EventObject
source -
构造器概要
构造器构造器说明ApplicationEvent(Object source) ApplicationEvent(Object source, Clock clock) Create a newApplicationEventwith itstimestampset to the value returned byClock.millis()in the providedClock. -
方法概要
从类继承的方法 java.util.EventObject
getSource, toString
-
构造器详细资料
-
ApplicationEvent
- 参数:
source- the object on which the event initially occurred or with which the event is associated (nevernull)- 另请参阅:
-
ApplicationEvent
Create a newApplicationEventwith itstimestampset to the value returned byClock.millis()in the providedClock.This constructor is typically used in testing scenarios.
- 参数:
source- the object on which the event initially occurred or with which the event is associated (nevernull)clock- a clock which will provide the timestamp- 另请参阅:
-
-
方法详细资料
-
getTimestamp
public final long getTimestamp()Return the time in milliseconds when the event occurred.
-