public class MessageHandlerConfigurer extends Object implements ConfigurerModule, org.springframework.context.ApplicationContextAware
ConfigurerModule that will register a list of beans as handlers for a specific type of
message.
The beans will be lazily resolved to avoid circular dependencies if any these beans relies on the Axon Configuration to be available in the Application Context.
Typically, an application context would have an instance of this class registered for each type of message to register.
| Modifier and Type | Class and Description |
|---|---|
static class |
MessageHandlerConfigurer.Type
Enumeration defining the auto configurable message handler types.
|
| Constructor and Description |
|---|
MessageHandlerConfigurer(MessageHandlerConfigurer.Type type,
List<String> beanRefs)
Registers the beans identified in given
beanRefs as the given type of handler with the Axon
Configuration. |
| Modifier and Type | Method and Description |
|---|---|
void |
configureModule(Configurer configurer)
Configure this module to the given global
Configurer. |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitorderpublic MessageHandlerConfigurer(MessageHandlerConfigurer.Type type, List<String> beanRefs)
beanRefs as the given type of handler with the Axon
Configuration.type - The type of handler to register the beans as.beanRefs - A list of bean identifiers to register.public void configureModule(@Nonnull Configurer configurer)
ConfigurerModuleConfigurer.configureModule in interface ConfigurerModuleconfigurer - a Configurer instance to configure this module withpublic void setApplicationContext(@Nonnull org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2010–2023. All rights reserved.