public class MessageHandlerLookup extends Object implements org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor
BeanDefinitionRegistryPostProcessor implementation that detects beans with Axon Message handlers and
registers an MessageHandlerConfigurer to have these handlers registered in the Axon
Configuration.| Constructor and Description |
|---|
MessageHandlerLookup() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
messageHandlerBeans(Class<? extends Message<?>> messageType,
org.springframework.beans.factory.config.ConfigurableListableBeanFactory registry)
Returns a list of beans found in the given
register that contain a handler for the given
messageType. |
static List<String> |
messageHandlerBeans(Class<? extends Message<?>> messageType,
org.springframework.beans.factory.config.ConfigurableListableBeanFactory registry,
boolean includePrototypeBeans)
Returns a list of beans found in the given
register that contain a handler for the given
messageType. |
void |
postProcessBeanDefinitionRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry registry) |
void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
public static List<String> messageHandlerBeans(Class<? extends Message<?>> messageType, org.springframework.beans.factory.config.ConfigurableListableBeanFactory registry)
register that contain a handler for the given
messageType. The search will not consider prototype beans (or any other non-singleton or abstract bean
definitions).messageType - The type of message to find handlers for.registry - The registry to find these handlers in.public static List<String> messageHandlerBeans(Class<? extends Message<?>> messageType, org.springframework.beans.factory.config.ConfigurableListableBeanFactory registry, boolean includePrototypeBeans)
register that contain a handler for the given
messageType. The search will only consider prototype beans (or any other non-singleton or abstract bean
definitions) when includePrototypeBeans is true.messageType - The type of message to find handlers for.registry - The registry to find these handlers in.public void postProcessBeanFactory(@Nonnull org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) throws org.springframework.beans.BeansException
postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessororg.springframework.beans.BeansExceptionpublic void postProcessBeanDefinitionRegistry(@Nonnull org.springframework.beans.factory.support.BeanDefinitionRegistry registry) throws org.springframework.beans.BeansException
postProcessBeanDefinitionRegistry in interface org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessororg.springframework.beans.BeansExceptionCopyright © 2010–2023. All rights reserved.