Package io.quarkus.runner.bootstrap
Class StartupActionImpl
java.lang.Object
io.quarkus.runner.bootstrap.StartupActionImpl
- All Implemented Interfaces:
io.quarkus.bootstrap.app.StartupAction
-
Constructor Summary
ConstructorsConstructorDescriptionStartupActionImpl(io.quarkus.bootstrap.app.CuratedApplication curatedApplication, io.quarkus.builder.BuildResult buildResult) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRuntimeCloseTask(Closeable closeTask) voidapplyModuleConfigurationToClassloader(ClassLoader classLoader) io.quarkus.bootstrap.classloading.QuarkusClassLoadervoidoverrideConfig(Map<String, String> config) io.quarkus.bootstrap.app.RunningQuarkusApplicationRuns the application, and returns a handle that can be used to shut it down.io.quarkus.bootstrap.app.RunningQuarkusApplicationrunMainClass(String... args) Runs the application by running the main method of the main class.intrunMainClassBlocking(String... args)
-
Constructor Details
-
StartupActionImpl
public StartupActionImpl(io.quarkus.bootstrap.app.CuratedApplication curatedApplication, io.quarkus.builder.BuildResult buildResult)
-
-
Method Details
-
applyModuleConfigurationToClassloader
- Specified by:
applyModuleConfigurationToClassloaderin interfaceio.quarkus.bootstrap.app.StartupAction
-
runMainClass
public io.quarkus.bootstrap.app.RunningQuarkusApplication runMainClass(String... args) throws Exception 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 interfaceio.quarkus.bootstrap.app.StartupAction- Throws:
Exception
-
addRuntimeCloseTask
- Specified by:
addRuntimeCloseTaskin interfaceio.quarkus.bootstrap.app.StartupAction
-
runMainClassBlocking
- Specified by:
runMainClassBlockingin interfaceio.quarkus.bootstrap.app.StartupAction- Throws:
Exception
-
overrideConfig
- Specified by:
overrideConfigin interfaceio.quarkus.bootstrap.app.StartupAction
-
run
Runs the application, and returns a handle that can be used to shut it down.- Specified by:
runin interfaceio.quarkus.bootstrap.app.StartupAction- Throws:
Exception
-
getClassLoader
public io.quarkus.bootstrap.classloading.QuarkusClassLoader getClassLoader()- Specified by:
getClassLoaderin interfaceio.quarkus.bootstrap.app.StartupAction
-
getOrInitialiseDevServicesProperties
- Specified by:
getOrInitialiseDevServicesPropertiesin interfaceio.quarkus.bootstrap.app.StartupAction
-
getOrInitialiseDevServicesNetworkId
- Specified by:
getOrInitialiseDevServicesNetworkIdin interfaceio.quarkus.bootstrap.app.StartupAction
-