@Singleton
public class ApplicationRunnerListener
extends java.lang.Object
ApplicationRunner
and CommandLineRunner
instances on startup.Modifier | Constructor and Description |
---|---|
protected |
ApplicationRunnerListener(CommandLine commandLine,
java.util.List<CommandLineRunner> commandLineRunnerList,
java.util.List<ApplicationRunner> applicationRunnerList)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
onStartup(StartupEvent startupEvent)
Invokes on startup and executes the listeners.
|
protected ApplicationRunnerListener(CommandLine commandLine, java.util.List<CommandLineRunner> commandLineRunnerList, java.util.List<ApplicationRunner> applicationRunnerList)
commandLine
- The command linecommandLineRunnerList
- The command runner listapplicationRunnerList
- The application runner list@EventListener protected void onStartup(StartupEvent startupEvent)
startupEvent
- The startup event