Package io.micronaut.spring.boot
Class ApplicationRunnerListener
java.lang.Object
io.micronaut.spring.boot.ApplicationRunnerListener
Runs
ApplicationRunner
and CommandLineRunner
instances on startup.- Since:
- 1.0
- Author:
- graemerocher
-
Constructor Summary
ModifierConstructorDescriptionprotected
ApplicationRunnerListener
(io.micronaut.core.cli.CommandLine commandLine, List<CommandLineRunner> commandLineRunnerList, List<ApplicationRunner> applicationRunnerList) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
onStartup
(io.micronaut.context.event.StartupEvent startupEvent) Invokes on startup and executes the listeners.
-
Constructor Details
-
ApplicationRunnerListener
protected ApplicationRunnerListener(io.micronaut.core.cli.CommandLine commandLine, List<CommandLineRunner> commandLineRunnerList, List<ApplicationRunner> applicationRunnerList) Default constructor.- Parameters:
commandLine
- The command linecommandLineRunnerList
- The command runner listapplicationRunnerList
- 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
-