Class AmqpListenerAnnotationBeanPostProcessor
java.lang.Object
org.springframework.amqp.listener.AbstractListenerAnnotationBeanPostProcessor<AmqpListener>
org.springframework.amqp.client.annotation.AmqpListenerAnnotationBeanPostProcessor
- All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.SmartInitializingSingleton, org.springframework.context.EnvironmentAware, org.springframework.core.Ordered
public class AmqpListenerAnnotationBeanPostProcessor
extends org.springframework.amqp.listener.AbstractListenerAnnotationBeanPostProcessor<AmqpListener>
Bean post-processor that registers methods annotated with
AmqpListener
to be invoked by an AMQP 1.0 message listener container created under the cover
by a MethodAmqpMessageListenerContainerFactory
according to the parameters of the annotation.
Annotated methods can use flexible arguments as defined by AmqpListener.
This post-processor is automatically registered by Spring's
by the EnableAmqp annotation.
- Since:
- 4.1
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.amqp.listener.AbstractListenerAnnotationBeanPostProcessor
org.springframework.amqp.listener.AbstractListenerAnnotationBeanPostProcessor.ListenerMethod<A>, org.springframework.amqp.listener.AbstractListenerAnnotationBeanPostProcessor.TypeMetadata<A> -
Field Summary
Fields inherited from class org.springframework.amqp.listener.AbstractListenerAnnotationBeanPostProcessor
CONVERSION_SERVICE, logger, typeCacheFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected org.springframework.amqp.listener.AbstractListenerAnnotationBeanPostProcessor.TypeMetadata<AmqpListener> buildMetadata(Class<?> clazz) protected voiddoProcessAmqpListener(AmqpListener listenerAnnotation, Method method, Object bean, String beanName) protected voidprocessMultiMethodListeners(List<AmqpListener> classLevelListeners, List<Method> multiMethods, Object bean, String beanName) Methods inherited from class org.springframework.amqp.listener.AbstractListenerAnnotationBeanPostProcessor
buildMetadata, checkProxy, getBeanClassLoader, getBeanFactory, getOrder, noBeanFoundMessage, postProcessAfterInitialization, resolveExpression, resolveExpressionAsBoolean, resolveExpressionAsBoolean, resolveExpressionAsString, resolveExpressionAsStringOrInteger, resolveExpressionToBean, resolveExpressionToInteger, resolveExpressionToLong, setBeanClassLoader, setBeanFactory, setEnvironment, toDuration, toDurationMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessBeforeInitialization
-
Constructor Details
-
AmqpListenerAnnotationBeanPostProcessor
public AmqpListenerAnnotationBeanPostProcessor()
-
-
Method Details
-
afterSingletonsInstantiated
public void afterSingletonsInstantiated()- Specified by:
afterSingletonsInstantiatedin interfaceorg.springframework.beans.factory.SmartInitializingSingleton- Overrides:
afterSingletonsInstantiatedin classorg.springframework.amqp.listener.AbstractListenerAnnotationBeanPostProcessor<AmqpListener>
-
buildMetadata
protected org.springframework.amqp.listener.AbstractListenerAnnotationBeanPostProcessor.TypeMetadata<AmqpListener> buildMetadata(Class<?> clazz) - Specified by:
buildMetadatain classorg.springframework.amqp.listener.AbstractListenerAnnotationBeanPostProcessor<AmqpListener>
-
processMultiMethodListeners
protected void processMultiMethodListeners(List<AmqpListener> classLevelListeners, List<Method> multiMethods, Object bean, String beanName) - Specified by:
processMultiMethodListenersin classorg.springframework.amqp.listener.AbstractListenerAnnotationBeanPostProcessor<AmqpListener>
-
doProcessAmqpListener
protected void doProcessAmqpListener(AmqpListener listenerAnnotation, Method method, Object bean, String beanName) - Specified by:
doProcessAmqpListenerin classorg.springframework.amqp.listener.AbstractListenerAnnotationBeanPostProcessor<AmqpListener>
-