List of usage examples for org.springframework.boot SpringApplication getListeners
public Set<ApplicationListener<?>> getListeners()
From source file:org.springframework.boot.context.event.EventPublishingRunListener.java
public EventPublishingRunListener(SpringApplication application, String[] args) { this.application = application; this.args = args; this.initialMulticaster = new SimpleApplicationEventMulticaster(); for (ApplicationListener<?> listener : application.getListeners()) { this.initialMulticaster.addApplicationListener(listener); }/* w w w . ja v a2 s. co m*/ }