Class PulsarReaderAnnotationBeanPostProcessor<V>
java.lang.Object
org.springframework.pulsar.annotation.AbstractPulsarAnnotationsBeanPostProcessor
org.springframework.pulsar.annotation.PulsarReaderAnnotationBeanPostProcessor<V>
- Type Parameters:
- V- the payload type.
- All Implemented Interfaces:
- Aware,- BeanPostProcessor,- InitializingBean,- SmartInitializingSingleton,- ApplicationContextAware,- Ordered
public class PulsarReaderAnnotationBeanPostProcessor<V>
extends AbstractPulsarAnnotationsBeanPostProcessor
implements SmartInitializingSingleton
Bean post-processor that registers methods annotated with 
PulsarListener to be
 invoked by a Pulsar message listener container created under the covers by a
 PulsarReaderContainerFactory according to the parameters of the annotation.
 
 Annotated methods can use flexible arguments as defined by PulsarListener.
 
 This post-processor is automatically registered by the EnablePulsar annotation.
 
 Auto-detect any PulsarListenerConfigurer instances in the container, allowing
 for customization of the registry to be used, the default container factory or for
 fine-grained control over endpoints registration. See EnablePulsar Javadoc for
 complete usage details.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.springframework.pulsar.annotation.AbstractPulsarAnnotationsBeanPostProcessorAbstractPulsarAnnotationsBeanPostProcessor.ListenerScope, AbstractPulsarAnnotationsBeanPostProcessor.PulsarHandlerMethodFactoryAdapter
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringThe bean name of the defaultPulsarReaderContainerFactory.Fields inherited from class org.springframework.pulsar.annotation.AbstractPulsarAnnotationsBeanPostProcessorbeanFactory, expressionContext, listenerScope, messageHandlerMethodFactory, resolverFields inherited from interface org.springframework.core.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidpostProcessAfterInitialization(Object bean, String beanName) protected voidprotected voidprocessPulsarReader(PulsarReader pulsarReader, Method method, Object bean, String beanName) protected voidprocessReader(MethodPulsarReaderEndpoint<?> endpoint, PulsarReader pulsarReader, Object bean, String beanName, String[] topics) Methods inherited from class org.springframework.pulsar.annotation.AbstractPulsarAnnotationsBeanPostProcessorafterPropertiesSet, assertBeanFactory, checkProxy, getOrder, loadProperty, noBeanFoundMessage, postProcessBeforeInitialization, resolve, resolveAsString, resolveExpression, resolveExpressionAsBoolean, resolveExpressionAsInteger, resolveExpressionAsString, setApplicationContext, setBeanFactory
- 
Field Details- 
DEFAULT_PULSAR_READER_CONTAINER_FACTORY_BEAN_NAMEThe bean name of the defaultPulsarReaderContainerFactory.- See Also:
 
 
- 
- 
Constructor Details- 
PulsarReaderAnnotationBeanPostProcessorpublic PulsarReaderAnnotationBeanPostProcessor()
 
- 
- 
Method Details- 
afterSingletonsInstantiatedpublic void afterSingletonsInstantiated()- Specified by:
- afterSingletonsInstantiatedin interface- SmartInitializingSingleton
 
- 
postProcessAfterInitialization- Specified by:
- postProcessAfterInitializationin interface- BeanPostProcessor
- Throws:
- BeansException
 
- 
processPulsarReaderprotected void processPulsarReader(PulsarReader pulsarReader, Method method, Object bean, String beanName) 
- 
processReaderprotected void processReader(MethodPulsarReaderEndpoint<?> endpoint, PulsarReader pulsarReader, Object bean, String beanName, String[] topics) 
- 
postProcessEndpointsBeforeRegistrationprotected void postProcessEndpointsBeforeRegistration()
 
-