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
Modifier and TypeClassDescriptionstatic class
protected class
-
Field Summary
Modifier and TypeFieldDescriptionprotected ApplicationContext
protected BeanFactory
protected BeanExpressionContext
protected final AbstractPulsarAnnotationsBeanPostProcessor.ListenerScope
protected final LogAccessor
protected BeanExpressionResolver
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
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
(Object target, String listenerBeanName, String requestedBeanName, Class<?> expectedClass) postProcessBeforeInitialization
(Object bean, String beanName) protected String
protected void
resolveAsString
(Object resolvedValue, List<String> result) protected Object
resolveExpression
(String value) protected Boolean
resolveExpressionAsBoolean
(String value, String attribute) protected Integer
resolveExpressionAsInteger
(String value, String attribute) protected 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() -
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
-