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, typeCache

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected org.springframework.amqp.listener.AbstractListenerAnnotationBeanPostProcessor.TypeMetadata<AmqpListener>
    buildMetadata(Class<?> clazz)
     
    protected void
    doProcessAmqpListener(AmqpListener listenerAnnotation, Method method, Object bean, String beanName)
     
    protected void
    processMultiMethodListeners(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, toDuration

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor

    postProcessBeforeInitialization
  • Constructor Details

    • AmqpListenerAnnotationBeanPostProcessor

      public AmqpListenerAnnotationBeanPostProcessor()
  • Method Details

    • afterSingletonsInstantiated

      public void afterSingletonsInstantiated()
      Specified by:
      afterSingletonsInstantiated in interface org.springframework.beans.factory.SmartInitializingSingleton
      Overrides:
      afterSingletonsInstantiated in class org.springframework.amqp.listener.AbstractListenerAnnotationBeanPostProcessor<AmqpListener>
    • buildMetadata

      protected org.springframework.amqp.listener.AbstractListenerAnnotationBeanPostProcessor.TypeMetadata<AmqpListener> buildMetadata(Class<?> clazz)
      Specified by:
      buildMetadata in class org.springframework.amqp.listener.AbstractListenerAnnotationBeanPostProcessor<AmqpListener>
    • processMultiMethodListeners

      protected void processMultiMethodListeners(List<AmqpListener> classLevelListeners, List<Method> multiMethods, Object bean, String beanName)
      Specified by:
      processMultiMethodListeners in class org.springframework.amqp.listener.AbstractListenerAnnotationBeanPostProcessor<AmqpListener>
    • doProcessAmqpListener

      protected void doProcessAmqpListener(AmqpListener listenerAnnotation, Method method, Object bean, String beanName)
      Specified by:
      doProcessAmqpListener in class org.springframework.amqp.listener.AbstractListenerAnnotationBeanPostProcessor<AmqpListener>