Class EventHandlerRegistrar

java.lang.Object
org.axonframework.spring.config.EventHandlerRegistrar
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

@Deprecated public class EventHandlerRegistrar extends Object implements org.springframework.beans.factory.InitializingBean
Deprecated.
Spring Bean that registers Event Handler beans with the EventHandlingConfiguration.

To customize this behavior, define a Bean of type EventProcessingModule in the application context:

     @Bean
     public EventProcessingModule eventProcessing() {
         return new EventProcessingModule();
     }
 
Since:
3.0
Author:
Allard Buijze
  • Constructor Details

    • EventHandlerRegistrar

      public EventHandlerRegistrar(AxonConfiguration axonConfiguration, ModuleConfiguration eventProcessingConfiguration, EventProcessingConfigurer eventProcessingConfigurer)
      Deprecated.
      Initialize the registrar to register beans discovered with the given eventProcessing. The registrar will also initialize the EventHandlerConfiguration using the given axonConfiguration and start it.
      Parameters:
      axonConfiguration - The main Axon Configuration instance
      eventProcessingConfigurer - The main Axon Configuration
  • Method Details

    • setEventHandlers

      public void setEventHandlers(List<Object> beans)
      Deprecated.
      Registers the given beans as event handlers with the Event Handler Configuration. The beans are sorted (see AnnotationAwareOrderComparator) before registering them to the configuration.
      Parameters:
      beans - the beans to register
    • afterPropertiesSet

      public void afterPropertiesSet()
      Deprecated.
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean