MessageHandlerLookup
and MessageHandlerConfigurer
.@Deprecated public class EventHandlerRegistrar extends Object implements org.springframework.beans.factory.InitializingBean
To customize this behavior, define a Bean of type EventProcessingModule
in the application context:
@Bean public EventProcessingModule eventProcessing() { return new EventProcessingModule(); }
Constructor and Description |
---|
EventHandlerRegistrar(AxonConfiguration axonConfiguration,
ModuleConfiguration eventProcessingConfiguration,
EventProcessingConfigurer eventProcessingConfigurer)
Deprecated.
Initialize the registrar to register beans discovered with the given
eventProcessing . |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Deprecated.
|
void |
setEventHandlers(List<Object> beans)
Deprecated.
Registers the given
beans as event handlers with the Event Handler Configuration. |
public EventHandlerRegistrar(AxonConfiguration axonConfiguration, ModuleConfiguration eventProcessingConfiguration, EventProcessingConfigurer eventProcessingConfigurer)
eventProcessing
. The registrar will
also initialize the EventHandlerConfiguration using the given axonConfiguration
and start it.axonConfiguration
- The main Axon Configuration instanceeventProcessingConfigurer
- The main Axon Configurationpublic void setEventHandlers(List<Object> beans)
beans
as event handlers with the Event Handler Configuration. The beans are sorted
(see AnnotationAwareOrderComparator
) before registering them to the configuration.beans
- the beans to registerpublic void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Copyright © 2010–2023. All rights reserved.