Class ApplicationStateNotification


  • public class ApplicationStateNotification
    extends Object
    A class that allows for access to the application state, even from outside the runtime class loader. This should generally only be used by dev mode internals that need information about the current application state. This class makes no attempt to verify that an application is starting/stopping when the wait methods are called, this should only be called by a client that is controlling the Quarkus lifecycle, and so knows what the current lifecycle state is.
    • Constructor Detail

      • ApplicationStateNotification

        public ApplicationStateNotification()
    • Method Detail

      • reset

        public static void reset()
      • notifyStartupComplete

        public static void notifyStartupComplete()
      • notifyApplicationStopped

        public static void notifyApplicationStopped()
      • notifyStartupFailed

        public static void notifyStartupFailed​(Throwable t)
        Notify of startup failure. Before this method is called the exception should be logged.
        Parameters:
        t - The exception
      • waitForApplicationStart

        public static void waitForApplicationStart()
      • waitForApplicationStop

        public static void waitForApplicationStop()