Class ApplicationPostStartEvent

java.lang.Object
eu.cloudnetservice.driver.event.Event
eu.cloudnetservice.wrapper.event.ApplicationPostStartEvent

public final class ApplicationPostStartEvent extends eu.cloudnetservice.driver.event.Event
An event called when the underlying application of the wrapper was started. This event cannot be used by platform plugins or extensions, as this event is fired before they get enabled.
Since:
4.0
  • Field Details

    • applicationMainClass

      private final Class<?> applicationMainClass
    • applicationThread

      private final Thread applicationThread
    • classLoader

      private final ClassLoader classLoader
  • Constructor Details

    • ApplicationPostStartEvent

      public ApplicationPostStartEvent(@NonNull @NonNull Class<?> applicationMainClass, @NonNull @NonNull Thread applicationThread, @NonNull @NonNull ClassLoader classLoader)
      Constructs a new ApplicationPostStartEvent instance.
      Parameters:
      applicationMainClass - the main class instance which will be invoked to start the application.
      applicationThread - the thread in which the application was started.
      classLoader - the class loader which loaded the application main class.
      Throws:
      NullPointerException - if the given app main, app thread or class loader is null.
  • Method Details

    • applicationMainClass

      @NonNull public @NonNull Class<?> applicationMainClass()
      Get the main class which was invoked when starting the application.
      Returns:
      the invoked main class of the application.
    • applicationThread

      @NonNull public @NonNull Thread applicationThread()
      Get the thread in which the application is running.
      Returns:
      the thread of the application.
    • classLoader

      @NonNull public @NonNull ClassLoader classLoader()
      Get the class loader which was used to load the main class of the application (and all other classes of the application in the runtime unless the application decides to switch to another loader).
      Returns:
      the class loader of the application main class.