Class ApplicationEvent

java.lang.Object
civitas.celestis.event.Event
civitas.celestis.event.application.ApplicationEvent
All Implemented Interfaces:
Handleable, Unique<UUID>
Direct Known Subclasses:
ApplicationStartedEvent, ApplicationStoppingEvent

public abstract class ApplicationEvent extends Event
An event called by the application to notify classes that there was a significant change in the application's state.
See Also:
  • Field Details

    • application

      @Nonnull protected final Application application
      The application which triggered this event.
  • Constructor Details

    • ApplicationEvent

      public ApplicationEvent(@Nonnull Application application)
      Creates a new application event.
      Parameters:
      application - The application which invoked this event
    • ApplicationEvent

      public ApplicationEvent(@Nonnull Application application, @Nullable Handleable cause)
      Creates a new application event.
      Parameters:
      application - The application which invoked this event
      cause - The cause of this event's invocation
  • Method Details

    • getApplication

      @Nonnull public Application getApplication()
      Returns the application which triggered this event.
      Returns:
      The application which triggered this event