Package io.quarkus.bootstrap.app
Interface StartupAction
-
public interface StartupAction
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClassLoadergetClassLoader()Map<String,String>getDevServicesProperties()voidoverrideConfig(Map<String,String> config)Overrides runtime config.RunningQuarkusApplicationrun(String... args)RunningQuarkusApplicationrunMainClass(String... args)Runs the application by running the main method of the main class.intrunMainClassBlocking(String... args)Runs the application by running the main method of the main class, and runs it to completion
-
-
-
Method Detail
-
run
RunningQuarkusApplication run(String... args) throws Exception
- Throws:
Exception
-
getClassLoader
ClassLoader getClassLoader()
-
runMainClass
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 inio.quarkus.runtime.ApplicationLifecycleManager#setDefaultExitCodeHandler(Consumer)of the JVM will exit when the app stops.- Throws:
Exception
-
-