Class PulsarListenerAnnotationBeanPostProcessor<V>

java.lang.Object
org.springframework.pulsar.annotation.AbstractPulsarAnnotationsBeanPostProcessor
org.springframework.pulsar.annotation.PulsarListenerAnnotationBeanPostProcessor<V>
Type Parameters:
V - the payload type.
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.SmartInitializingSingleton, org.springframework.context.ApplicationContextAware, org.springframework.core.Ordered

public class PulsarListenerAnnotationBeanPostProcessor<V> extends AbstractPulsarAnnotationsBeanPostProcessor implements org.springframework.beans.factory.SmartInitializingSingleton
Bean post-processor that registers methods annotated with PulsarListener to be invoked by a Pulsar message listener container created under the covers by a PulsarListenerContainerFactory according to the parameters of the annotation.

Annotated methods can use flexible arguments as defined by PulsarListener.

This post-processor is automatically registered by the EnablePulsar annotation.

Auto-detect any PulsarListenerConfigurer 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 EnablePulsar Javadoc for complete usage details.

See Also:
  • Field Details

  • Constructor Details

    • PulsarListenerAnnotationBeanPostProcessor

      public PulsarListenerAnnotationBeanPostProcessor()
  • Method Details

    • afterSingletonsInstantiated

      public void afterSingletonsInstantiated()
      Specified by:
      afterSingletonsInstantiated in interface org.springframework.beans.factory.SmartInitializingSingleton
    • postProcessAfterInitialization

      public Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
      Specified by:
      postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
      Throws:
      org.springframework.beans.BeansException
    • processPulsarListener

      protected void processPulsarListener(PulsarListener pulsarListener, Method method, Object bean, String beanName)
    • processListener

      protected void processListener(MethodPulsarListenerEndpoint<?> endpoint, PulsarListener PulsarListener, Object bean, String beanName, String[] topics, String topicPattern)
    • postProcessEndpointsBeforeRegistration

      protected void postProcessEndpointsBeforeRegistration()