类 ApplicationEvent

java.lang.Object
java.util.EventObject
cn.taketoday.context.ApplicationEvent
所有已实现的接口:
Serializable
直接已知子类:
ApplicationContextEvent, PayloadApplicationEvent

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.
从以下版本开始:
2018-09-09 21:23
作者:
Rod Johnson, Juergen Hoeller, TODAY
另请参阅:
  • 构造器详细资料

    • ApplicationEvent

      public ApplicationEvent(Object source)
      Create a new ApplicationEvent with its timestamp set to System.currentTimeMillis().
      参数:
      source - the object on which the event initially occurred or with which the event is associated (never null)
      另请参阅:
    • ApplicationEvent

      public ApplicationEvent(Object source, Clock clock)
      Create a new ApplicationEvent with its timestamp set to the value returned by Clock.millis() in the provided Clock.

      This constructor is typically used in testing scenarios.

      参数:
      source - the object on which the event initially occurred or with which the event is associated (never null)
      clock - a clock which will provide the timestamp
      另请参阅:
  • 方法详细资料