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.Constructor and Description |
---|
StreamListenerAnnotationBeanPostProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
afterSingletonsInstantiated() |
Object |
postProcessAfterInitialization(Object bean,
String beanName) |
protected StreamListener |
postProcessAnnotation(StreamListener originalAnnotation,
Method annotatedMethod)
Extension point, allowing subclasses to customize the
StreamListener
annotation detected by the postprocessor. |
Object |
postProcessBeforeInitialization(Object bean,
String beanName) |
protected void |
registerHandlerMethodOnListenedChannel(Method method,
StreamListener streamListener,
Object bean) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public StreamListenerAnnotationBeanPostProcessor()
public final void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessBeforeInitialization
in interface org.springframework.beans.factory.config.BeanPostProcessor
org.springframework.beans.BeansException
public final void afterSingletonsInstantiated()
afterSingletonsInstantiated
in interface org.springframework.beans.factory.SmartInitializingSingleton
public final Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessAfterInitialization
in interface org.springframework.beans.factory.config.BeanPostProcessor
org.springframework.beans.BeansException
protected final void registerHandlerMethodOnListenedChannel(Method method, StreamListener streamListener, Object bean)
protected StreamListener postProcessAnnotation(StreamListener originalAnnotation, Method annotatedMethod)
StreamListener
annotation detected by the postprocessor.originalAnnotation
- the original annotationannotatedMethod
- the method on which the annotation has been foundStreamListener
annotationCopyright © 2019 Pivotal Software, Inc.. All rights reserved.