Package io.quarkus.bootstrap.app
Interface StartupAction
public interface StartupAction
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddRuntimeCloseTask(Closeable closeTask) voidapplyModuleConfigurationToClassloader(ClassLoader classLoader) This particular StartupAction might need to enforce Java module configurations as required by the extensions.This will start any dev services that were not started in the augmentation phase.This will start any dev services that were not started in the augmentation phase.voidoverrideConfig(Map<String, String> config) Overrides runtime config.runMainClass(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 Details
-
overrideConfig
Overrides runtime config. -
run
- Throws:
Exception
-
getClassLoader
QuarkusClassLoader getClassLoader() -
getOrInitialiseDevServicesProperties
This will start any dev services that were not started in the augmentation phase. -
getOrInitialiseDevServicesNetworkId
String getOrInitialiseDevServicesNetworkId()This will start any dev services that were not started in the augmentation phase. -
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
of the JVM will exit when the app stops.invalid reference
io.quarkus.runtime.ApplicationLifecycleManager#setDefaultExitCodeHandler(Consumer)- Throws:
Exception
-
runMainClassBlocking
Runs the application by running the main method of the main class, and runs it to completion- Throws:
Exception
-
addRuntimeCloseTask
-
applyModuleConfigurationToClassloader
This particular StartupAction might need to enforce Java module configurations as required by the extensions. Such tuning often need to be applied to the running classloader: if additional classloaders are derived from the application classloader, they should be adjusted accordingly by invoking this method on them before starting the application. (This is apparently necessary in the JUnit integration).- Parameters:
classLoader-
-