Package io.quarkus.runner.bootstrap
Class StartupActionImpl
java.lang.Object
io.quarkus.runner.bootstrap.StartupActionImpl
- All Implemented Interfaces:
StartupAction
-
Constructor Summary
ConstructorsConstructorDescriptionStartupActionImpl(CuratedApplication curatedApplication, BuildResult buildResult) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRuntimeCloseTask(Closeable closeTask) voidoverrideConfig(Map<String, String> config) Runs the application, and returns a handle that can be used to shut it down.runMainClass(String... args) Runs the application by running the main method of the main class.intrunMainClassBlocking(String... args)
-
Constructor Details
-
StartupActionImpl
-
-
Method Details
-
runMainClass
Runs the application by running the main method of the main class. As this is a blocking method a new thread is created to run this task.Before this method is called an appropriate exit handler will likely need to be set in
ApplicationLifecycleManager.setDefaultExitCodeHandler(Consumer)of the JVM will exit when the app stops.- Specified by:
runMainClassin interfaceStartupAction- Throws:
Exception
-
addRuntimeCloseTask
- Specified by:
addRuntimeCloseTaskin interfaceStartupAction
-
runMainClassBlocking
- Specified by:
runMainClassBlockingin interfaceStartupAction- Throws:
Exception
-
overrideConfig
- Specified by:
overrideConfigin interfaceStartupAction
-
run
Runs the application, and returns a handle that can be used to shut it down.- Specified by:
runin interfaceStartupAction- Throws:
Exception
-
getClassLoader
- Specified by:
getClassLoaderin interfaceStartupAction
-
getDevServicesProperties
- Specified by:
getDevServicesPropertiesin interfaceStartupAction
-