Package org.axonframework.spring.config
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 Summary
ConstructorsConstructorDescriptionEventHandlerRegistrar(AxonConfiguration axonConfiguration, ModuleConfiguration eventProcessingConfiguration, EventProcessingConfigurer eventProcessingConfigurer) Deprecated.Initialize the registrar to register beans discovered with the giveneventProcessing. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.voidsetEventHandlers(List<Object> beans) Deprecated.Registers the givenbeansas event handlers with the Event Handler Configuration.
-
Constructor Details
-
EventHandlerRegistrar
public EventHandlerRegistrar(AxonConfiguration axonConfiguration, ModuleConfiguration eventProcessingConfiguration, EventProcessingConfigurer eventProcessingConfigurer) Deprecated.Initialize the registrar to register beans discovered with the giveneventProcessing. The registrar will also initialize the EventHandlerConfiguration using the givenaxonConfigurationand start it.- Parameters:
axonConfiguration- The main Axon Configuration instanceeventProcessingConfigurer- The main Axon Configuration
-
-
Method Details
-
setEventHandlers
Deprecated.Registers the givenbeansas event handlers with the Event Handler Configuration. The beans are sorted (seeAnnotationAwareOrderComparator) before registering them to the configuration.- Parameters:
beans- the beans to register
-
afterPropertiesSet
public void afterPropertiesSet()Deprecated.- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
MessageHandlerLookupandMessageHandlerConfigurer.