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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprotected class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected org.springframework.beans.factory.BeanFactoryprotected org.springframework.beans.factory.config.BeanExpressionContextprotected final AbstractPulsarAnnotationsBeanPostProcessor.ListenerScopeprotected final org.springframework.core.log.LogAccessorprotected org.springframework.beans.factory.config.BeanExpressionResolverFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidprotected MethodcheckProxy(Method methodArg, Object bean) intgetOrder()protected voidloadProperty(Properties properties, String property, Object value) protected StringnoBeanFoundMessage(Object target, String listenerBeanName, String requestedBeanName, Class<?> expectedClass) postProcessBeforeInitialization(Object bean, String beanName) protected Stringprotected voidresolveAsString(Object resolvedValue, List<String> result) protected ObjectresolveExpression(String value) protected BooleanresolveExpressionAsBoolean(String value, String attribute) protected IntegerresolveExpressionAsInteger(String value, String attribute) protected StringresolveExpressionAsString(String value, String attribute) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessAfterInitialization
-
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
protected final AbstractPulsarAnnotationsBeanPostProcessor.PulsarHandlerMethodFactoryAdapter messageHandlerMethodFactory
-
-
Constructor Details
-
AbstractPulsarAnnotationsBeanPostProcessor
public AbstractPulsarAnnotationsBeanPostProcessor()
-
-
Method Details
-
postProcessBeforeInitialization
public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException - Specified by:
postProcessBeforeInitializationin interfaceorg.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
-
resolveExpressionAsBoolean
-
resolveExpression
-
resolve
-
resolveExpressionAsString
-
resolveAsString
-
checkProxy
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
loadProperty
-
resolveExpressionAsInteger
-