Class StreamListenerAnnotationBeanPostProcessor
- java.lang.Object
-
- org.springframework.cloud.stream.binding.StreamListenerAnnotationBeanPostProcessor
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.config.BeanPostProcessor,org.springframework.beans.factory.SmartInitializingSingleton,org.springframework.context.ApplicationContextAware
public class StreamListenerAnnotationBeanPostProcessor extends Object implements org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.SmartInitializingSingleton
BeanPostProcessorthat handlesStreamListenerannotations found on bean methods.- Author:
- Marius Bogoevici, Ilayaperumal Gopinathan, Soby Chacko, Oleg Zhurakousky
-
-
Constructor Summary
Constructors Constructor Description StreamListenerAnnotationBeanPostProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterSingletonsInstantiated()ObjectpostProcessAfterInitialization(Object bean, String beanName)protected StreamListenerpostProcessAnnotation(StreamListener originalAnnotation, Method annotatedMethod)Extension point, allowing subclasses to customize theStreamListenerannotation detected by the postprocessor.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
-
-
Method Detail
-
setApplicationContext
public final void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
afterSingletonsInstantiated
public final void afterSingletonsInstantiated()
- Specified by:
afterSingletonsInstantiatedin interfaceorg.springframework.beans.factory.SmartInitializingSingleton
-
postProcessAfterInitialization
public final Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
- Specified by:
postProcessAfterInitializationin interfaceorg.springframework.beans.factory.config.BeanPostProcessor- Throws:
org.springframework.beans.BeansException
-
postProcessAnnotation
protected StreamListener postProcessAnnotation(StreamListener originalAnnotation, Method annotatedMethod)
Extension point, allowing subclasses to customize theStreamListenerannotation detected by the postprocessor.- Parameters:
originalAnnotation- the original annotationannotatedMethod- the method on which the annotation has been found- Returns:
- the postprocessed
StreamListenerannotation
-
-