Class AbstractPulsarAnnotationsBeanPostProcessor

java.lang.Object
org.springframework.pulsar.annotation.AbstractPulsarAnnotationsBeanPostProcessor
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.core.Ordered
Direct Known Subclasses:
PulsarListenerAnnotationBeanPostProcessor, PulsarReaderAnnotationBeanPostProcessor

public class AbstractPulsarAnnotationsBeanPostProcessor extends Object implements org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean, org.springframework.core.Ordered
Base class implementation for the various annotation post processors in Spring Pulsar.
  • Field Details

    • logger

      protected final org.springframework.core.log.LogAccessor logger
    • beanFactory

      protected org.springframework.beans.factory.BeanFactory beanFactory
    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
    • resolver

      protected org.springframework.beans.factory.config.BeanExpressionResolver resolver
    • expressionContext

      protected org.springframework.beans.factory.config.BeanExpressionContext expressionContext
    • listenerScope

    • messageHandlerMethodFactory

  • Constructor Details

    • AbstractPulsarAnnotationsBeanPostProcessor

      public AbstractPulsarAnnotationsBeanPostProcessor()
  • Method Details

    • postProcessBeforeInitialization

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

      protected void assertBeanFactory()
    • setBeanFactory

      public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
    • noBeanFoundMessage

      protected String noBeanFoundMessage(Object target, String listenerBeanName, String requestedBeanName, Class<?> expectedClass)
    • resolveExpressionAsBoolean

      protected Boolean resolveExpressionAsBoolean(String value, String attribute)
    • resolveExpression

      protected Object resolveExpression(String value)
    • resolve

      protected String resolve(String value)
    • resolveExpressionAsString

      protected String resolveExpressionAsString(String value, String attribute)
    • resolveAsString

      protected void resolveAsString(Object resolvedValue, List<String> result)
    • checkProxy

      protected Method checkProxy(Method methodArg, Object bean)
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
    • loadProperty

      protected void loadProperty(Properties properties, String property, Object value)
    • resolveExpressionAsInteger

      protected Integer resolveExpressionAsInteger(String value, String attribute)