Class RabbitListenerAnnotationBeanPostProcessor

java.lang.Object
org.springframework.amqp.rabbit.annotation.RabbitListenerAnnotationBeanPostProcessor
All Implemented Interfaces:
Aware, BeanClassLoaderAware, BeanFactoryAware, BeanPostProcessor, SmartInitializingSingleton, EnvironmentAware, Ordered
Direct Known Subclasses:
MultiRabbitListenerAnnotationBeanPostProcessor, RabbitListenerTestHarness

public class RabbitListenerAnnotationBeanPostProcessor extends Object implements BeanPostProcessor, Ordered, BeanFactoryAware, BeanClassLoaderAware, EnvironmentAware, SmartInitializingSingleton
Bean post-processor that registers methods annotated with RabbitListener to be invoked by a AMQP message listener container created under the cover by a RabbitListenerContainerFactory according to the parameters of the annotation.

Annotated methods can use flexible arguments as defined by RabbitListener.

This post-processor is automatically registered by Spring's <rabbit:annotation-driven> XML element, and also by the EnableRabbit annotation.

Auto-detect any RabbitListenerConfigurer instances in the container, allowing for customization of the registry to be used, the default container factory or for fine-grained control over endpoints registration. See EnableRabbit Javadoc for complete usage details.

Since:
1.4
Author:
Stephane Nicoll, Juergen Hoeller, Gary Russell, Alex Panchenko, Artem Bilan
See Also: