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 class
protected class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @Nullable ApplicationContext
protected @Nullable BeanFactory
protected @Nullable BeanExpressionContext
protected final AbstractPulsarAnnotationsBeanPostProcessor.ListenerScope
protected final LogAccessor
protected @Nullable BeanExpressionResolver
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
protected Method
checkProxy
(Method methodArg, Object bean) int
getOrder()
protected void
loadProperty
(Properties properties, String property, Object value) protected String
noBeanFoundMessage
(@Nullable Object target, String listenerBeanName, String requestedBeanName, Class<?> expectedClass) postProcessBeforeInitialization
(Object bean, String beanName) protected BeanFactory
protected @Nullable String
protected void
resolveAsString
(Object resolvedValue, List<String> result) protected @Nullable Object
resolveExpression
(String value) protected @Nullable Boolean
resolveExpressionAsBoolean
(String value, String attribute) protected Integer
resolveExpressionAsInteger
(String value, String attribute) protected @Nullable String
resolveExpressionAsString
(String value, String attribute) void
setApplicationContext
(ApplicationContext applicationContext) void
setBeanFactory
(BeanFactory beanFactory) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
postProcessBeforeInitialization
in interfaceBeanPostProcessor
- Throws:
BeansException
-
assertBeanFactory
protected void assertBeanFactory() -
requireNonNullBeanFactory
-
setBeanFactory
-
noBeanFoundMessage
-
resolveExpressionAsBoolean
-
resolveExpression
-
resolve
-
resolveExpressionAsString
-
resolveAsString
-
checkProxy
-
setApplicationContext
- Specified by:
setApplicationContext
in interfaceApplicationContextAware
- Throws:
BeansException
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceInitializingBean
-
getOrder
public int getOrder() -
loadProperty
-
resolveExpressionAsInteger
-