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
BeanPostProcessor that handles StreamListener annotations found on bean
methods.- Author:
- Marius Bogoevici, Ilayaperumal Gopinathan, Soby Chacko, Oleg Zhurakousky
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidfinal ObjectpostProcessAfterInitialization(Object bean, String beanName) protected StreamListenerpostProcessAnnotation(StreamListener originalAnnotation, Method annotatedMethod) Extension point, allowing subclasses to customize theStreamListenerannotation detected by the postprocessor.final voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessBeforeInitialization
-
Constructor Details
-
StreamListenerAnnotationBeanPostProcessor
public StreamListenerAnnotationBeanPostProcessor()
-
-
Method Details
-
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
-