Java Code Examples for org.springframework.context.event.ApplicationEventMulticaster

Following code examples demonstrate how to use org.springframework.context.event.ApplicationEventMulticasterfrom spring-framework. These examples are extracted from various highly rated open source projects. You can directly use these code snippets or view their entire linked source code. These snippets are extracted to provide contextual information about how to use this class in the real world. These samples also let you understand some good practices on how to use org.springframework.context.event.ApplicationEventMulticasterand various code implementation of this class.

  public ApplicationEventMulticaster simpleApplicationEventMulticaster() {
    var eventMulticaster = new SimpleApplicationEventMulticaster();

    eventMulticaster.setTaskExecutor(new SimpleAsyncTaskExecutor());
    return eventMulticaster;
  } 


Advertisement
Javadoc
Interface to be implemented by objects that can manage a number of ApplicationListener objects, and

publish events to them.

An org.springframework.context.ApplicationEventPublisher, typically a Spring org.springframework.context.ApplicationContext, can use an ApplicationEventMulticaster as a delegate for actually publishing events. @author Rod Johnson @author Juergen Hoeller @author Stephane Nicoll

Read More
Advertisement