Class StartupEvent


  • public class StartupEvent
    extends Object
    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 Detail

      • StartupEvent

        public StartupEvent()