Class ApplicationRunnerListener

java.lang.Object
io.micronaut.spring.boot.ApplicationRunnerListener

@Singleton public class ApplicationRunnerListener extends Object
Runs ApplicationRunner and CommandLineRunner instances on startup.
Since:
1.0
Author:
graemerocher
  • Constructor Details

    • ApplicationRunnerListener

      protected ApplicationRunnerListener(io.micronaut.core.cli.CommandLine commandLine, List<CommandLineRunner> commandLineRunnerList, List<ApplicationRunner> applicationRunnerList)
      Default constructor.
      Parameters:
      commandLine - The command line
      commandLineRunnerList - The command runner list
      applicationRunnerList - The application runner list
  • Method Details

    • onStartup

      @EventListener protected void onStartup(io.micronaut.context.event.StartupEvent startupEvent)
      Invokes on startup and executes the listeners.
      Parameters:
      startupEvent - The startup event