public class StreamListenerAnnotationBeanPostProcessor extends Object implements org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.SmartInitializingSingleton, org.springframework.beans.factory.InitializingBean
BeanPostProcessor that handles StreamListener annotations found on bean
methods.| Constructor and Description |
|---|
StreamListenerAnnotationBeanPostProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
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) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
public StreamListenerAnnotationBeanPostProcessor()
public final void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic final Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansExceptionpublic final Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansExceptionprotected 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 annotationprotected final void registerHandlerMethodOnListenedChannel(Method method, StreamListener streamListener, Object bean)
public final void afterSingletonsInstantiated()
afterSingletonsInstantiated in interface org.springframework.beans.factory.SmartInitializingSingletonCopyright © 2017 Pivotal Software, Inc.. All rights reserved.