Class AbstractPulsarAnnotationsBeanPostProcessor
java.lang.Object
org.springframework.pulsar.annotation.AbstractPulsarAnnotationsBeanPostProcessor
- All Implemented Interfaces:
Aware,BeanPostProcessor,InitializingBean,ApplicationContextAware,Ordered
- Direct Known Subclasses:
PulsarListenerAnnotationBeanPostProcessor,PulsarReaderAnnotationBeanPostProcessor,ReactivePulsarListenerAnnotationBeanPostProcessor
public class AbstractPulsarAnnotationsBeanPostProcessor
extends Object
implements BeanPostProcessor, ApplicationContextAware, InitializingBean, Ordered
Base class implementation for the various annotation post processors in Spring Pulsar.
- Author:
- Soby Chacko
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprotected class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ApplicationContextprotected BeanFactoryprotected BeanExpressionContextprotected final AbstractPulsarAnnotationsBeanPostProcessor.ListenerScopeprotected final LogAccessorprotected 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(ApplicationContext applicationContext) voidsetBeanFactory(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
-
beanFactory
-
applicationContext
-
resolver
-
expressionContext
-
listenerScope
-
messageHandlerMethodFactory
protected final AbstractPulsarAnnotationsBeanPostProcessor.PulsarHandlerMethodFactoryAdapter messageHandlerMethodFactory
-
-
Constructor Details
-
AbstractPulsarAnnotationsBeanPostProcessor
public AbstractPulsarAnnotationsBeanPostProcessor()
-
-
Method Details
-
postProcessBeforeInitialization
- Specified by:
postProcessBeforeInitializationin interfaceBeanPostProcessor- Throws:
BeansException
-
assertBeanFactory
protected void assertBeanFactory() -
setBeanFactory
-
noBeanFoundMessage
-
resolveExpressionAsBoolean
-
resolveExpression
-
resolve
-
resolveExpressionAsString
-
resolveAsString
-
checkProxy
-
setApplicationContext
- Specified by:
setApplicationContextin interfaceApplicationContextAware- Throws:
BeansException
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceInitializingBean
-
getOrder
public int getOrder() -
loadProperty
-
resolveExpressionAsInteger
-