Class AbstractPulsarAnnotationsBeanPostProcessor
java.lang.Object
org.springframework.pulsar.annotation.AbstractPulsarAnnotationsBeanPostProcessor
- All Implemented Interfaces:
Aware, BeanPostProcessor, InitializingBean, ApplicationContextAware, Ordered
- Direct Known Subclasses:
PulsarListenerAnnotationBeanPostProcessor, PulsarReaderAnnotationBeanPostProcessor
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 @Nullable ApplicationContextprotected @Nullable BeanFactoryprotected @Nullable BeanExpressionContextprotected final AbstractPulsarAnnotationsBeanPostProcessor.ListenerScopeprotected final LogAccessorprotected @Nullable BeanExpressionResolverFields inherited from interface 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(@Nullable Object target, String listenerBeanName, String requestedBeanName, Class<?> expectedClass) postProcessBeforeInitialization(Object bean, String beanName) protected BeanFactoryprotected @Nullable Stringprotected voidresolveAsString(Object resolvedValue, List<String> result) protected @Nullable ObjectresolveExpression(String value) protected @Nullable BooleanresolveExpressionAsBoolean(String value, String attribute) protected IntegerresolveExpressionAsInteger(String value, String attribute) protected @Nullable StringresolveExpressionAsString(String value, String attribute) voidsetApplicationContext(ApplicationContext applicationContext) voidsetBeanFactory(BeanFactory beanFactory) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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() -
requireNonNullBeanFactory
-
setBeanFactory
-
noBeanFoundMessage
-
resolveExpressionAsBoolean
-
resolveExpression
-
resolve
-
resolveExpressionAsString
-
resolveAsString
-
checkProxy
-
setApplicationContext
- Specified by:
setApplicationContextin interfaceApplicationContextAware- Throws:
BeansException
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceInitializingBean
-
getOrder
-
loadProperty
-
resolveExpressionAsInteger
-