Class StartupEvent

java.lang.Object
jakarta.enterprise.event.Startup
io.quarkus.runtime.StartupEvent

public class StartupEvent extends jakarta.enterprise.event.Startup
Event class that is fired on startup. This is fired on main method execution after all startup code has run, so can be used to start threads etc. in native image mode This event is observed as follows:
     void onStart(@Observes StartupEvent ev) {
         LOGGER.info("The application is starting...");
     }
 
The annotated method can access other injected beans.
  • Constructor Details

    • StartupEvent

      public StartupEvent()