Package io.quarkus.runtime
Class StartupEvent
- java.lang.Object
-
- io.quarkus.runtime.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:
The annotated method can access other injected beans.void onStart(@Observes StartupEvent ev) { LOGGER.info("The application is starting..."); }