Package io.quarkus.runner.bootstrap
Class StartupActionImpl
- java.lang.Object
-
- io.quarkus.runner.bootstrap.StartupActionImpl
-
- All Implemented Interfaces:
StartupAction
public class StartupActionImpl extends Object implements StartupAction
-
-
Constructor Summary
Constructors Constructor Description StartupActionImpl(CuratedApplication curatedApplication, BuildResult buildResult)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassLoadergetClassLoader()Map<String,String>getDevServicesProperties()voidoverrideConfig(Map<String,String> config)RunningQuarkusApplicationrun(String... args)Runs the application, and returns a handle that can be used to shut it down.RunningQuarkusApplicationrunMainClass(String... args)Runs the application by running the main method of the main class.intrunMainClassBlocking(String... args)
-
-
-
Constructor Detail
-
StartupActionImpl
public StartupActionImpl(CuratedApplication curatedApplication, BuildResult buildResult)
-
-
Method Detail
-
runMainClass
public 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 interfaceStartupAction- Throws:
Exception
-
runMainClassBlocking
public int runMainClassBlocking(String... args) throws Exception
- Specified by:
runMainClassBlockingin interfaceStartupAction- Throws:
Exception
-
overrideConfig
public void overrideConfig(Map<String,String> config)
- Specified by:
overrideConfigin interfaceStartupAction
-
run
public RunningQuarkusApplication run(String... args) throws Exception
Runs the application, and returns a handle that can be used to shut it down.- Specified by:
runin interfaceStartupAction- Throws:
Exception
-
getClassLoader
public ClassLoader getClassLoader()
- Specified by:
getClassLoaderin interfaceStartupAction
-
getDevServicesProperties
public Map<String,String> getDevServicesProperties()
- Specified by:
getDevServicesPropertiesin interfaceStartupAction
-
-