Class StartupActionImpl

java.lang.Object
io.quarkus.runner.bootstrap.StartupActionImpl
All Implemented Interfaces:
io.quarkus.bootstrap.app.StartupAction

public class StartupActionImpl extends Object implements io.quarkus.bootstrap.app.StartupAction
  • Constructor Details

    • StartupActionImpl

      public StartupActionImpl(io.quarkus.bootstrap.app.CuratedApplication curatedApplication, io.quarkus.builder.BuildResult buildResult)
  • Method Details

    • applyModuleConfigurationToClassloader

      public void applyModuleConfigurationToClassloader(ClassLoader classLoader)
      Specified by:
      applyModuleConfigurationToClassloader in interface io.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:
      runMainClass in interface io.quarkus.bootstrap.app.StartupAction
      Throws:
      Exception
    • addRuntimeCloseTask

      public void addRuntimeCloseTask(Closeable closeTask)
      Specified by:
      addRuntimeCloseTask in interface io.quarkus.bootstrap.app.StartupAction
    • runMainClassBlocking

      public int runMainClassBlocking(String... args) throws Exception
      Specified by:
      runMainClassBlocking in interface io.quarkus.bootstrap.app.StartupAction
      Throws:
      Exception
    • overrideConfig

      public void overrideConfig(Map<String,String> config)
      Specified by:
      overrideConfig in interface io.quarkus.bootstrap.app.StartupAction
    • run

      public io.quarkus.bootstrap.app.RunningQuarkusApplication run(String... args) throws Exception
      Runs the application, and returns a handle that can be used to shut it down.
      Specified by:
      run in interface io.quarkus.bootstrap.app.StartupAction
      Throws:
      Exception
    • getClassLoader

      public io.quarkus.bootstrap.classloading.QuarkusClassLoader getClassLoader()
      Specified by:
      getClassLoader in interface io.quarkus.bootstrap.app.StartupAction
    • getOrInitialiseDevServicesProperties

      public Map<String,String> getOrInitialiseDevServicesProperties()
      Specified by:
      getOrInitialiseDevServicesProperties in interface io.quarkus.bootstrap.app.StartupAction
    • getOrInitialiseDevServicesNetworkId

      public String getOrInitialiseDevServicesNetworkId()
      Specified by:
      getOrInitialiseDevServicesNetworkId in interface io.quarkus.bootstrap.app.StartupAction