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.ApplicationContextAware
org.springframework.beans.BeansException
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public final 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 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 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.SmartInitializingSingleton
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.