public class StartupActionImpl extends Object implements StartupAction
| Constructor and Description |
|---|
StartupActionImpl(CuratedApplication curatedApplication,
BuildResult buildResult) |
| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
getClassLoader() |
RunningQuarkusApplication |
run(String... args)
Runs the application, and returns a handle that can be used to shut it down.
|
RunningQuarkusApplication |
runMainClass(String... args)
Runs the application by running the main method of the main class.
|
public StartupActionImpl(CuratedApplication curatedApplication, BuildResult buildResult)
public RunningQuarkusApplication runMainClass(String... args) throws Exception
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.
runMainClass in interface StartupActionExceptionpublic RunningQuarkusApplication run(String... args) throws Exception
run in interface StartupActionExceptionpublic ClassLoader getClassLoader()
getClassLoader in interface StartupActionCopyright © 2021 JBoss by Red Hat. All rights reserved.