Class AbstractSimpleMessageHandlerFactoryBean<H extends MessageHandler>
java.lang.Object
org.springframework.integration.config.AbstractSimpleMessageHandlerFactoryBean<H>
- Type Parameters:
- H- the target message handler type.
- All Implemented Interfaces:
- Aware,- BeanFactoryAware,- BeanNameAware,- FactoryBean<MessageHandler>,- ApplicationContextAware,- ApplicationEventPublisherAware
- Direct Known Subclasses:
- AbstractStandardMessageHandlerFactoryBean,- AggregatorFactoryBean,- ExpressionControlBusFactoryBean,- FileWritingMessageHandlerFactoryBean,- GroovyControlBusFactoryBean,- JpaOutboundGatewayFactoryBean
public abstract class AbstractSimpleMessageHandlerFactoryBean<H extends MessageHandler>
extends Object
implements FactoryBean<MessageHandler>, ApplicationContextAware, BeanFactoryAware, BeanNameAware, ApplicationEventPublisherAware
Factory bean to create and configure a 
MessageHandler.- Author:
- Dave Syer, Oleg Zhurakousky, Gary Russell, Artem Bilan, David Liu, Christian Tzolov
- 
Field SummaryFieldsFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected abstract Hprotected final Hprotected BeanFactoryClass<? extends MessageHandler>protected Class<? extends MessageHandler>Subclasses can override this to return a more specific type before handler creation.booleanvoidsetAdviceChain(List<Advice> adviceChain) Set the advice chain to be configured within anAbstractReplyProducingMessageHandlerto advise just this local endpoint.voidsetApplicationContext(ApplicationContext applicationContext) voidsetApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) voidCurrently only exposed on the service activator namespace.voidsetBeanFactory(BeanFactory beanFactory) voidsetBeanName(String beanName) voidsetChannelResolver(DestinationResolver<MessageChannel> channelResolver) Set the handler's channel resolver.voidsetComponentName(String componentName) Sets the name of the handler component.voidSet the order in which the handler will be subscribed to its channel (when subscribable).voidsetOutputChannel(MessageChannel outputChannel) Set the handler's output channel.voidsetOutputChannelName(String outputChannelName) Set the handler's output channel name.
- 
Field Details- 
logger
 
- 
- 
Constructor Details- 
AbstractSimpleMessageHandlerFactoryBeanpublic AbstractSimpleMessageHandlerFactoryBean()
 
- 
- 
Method Details- 
setApplicationContext- Specified by:
- setApplicationContextin interface- ApplicationContextAware
- Throws:
- BeansException
 
- 
setBeanName- Specified by:
- setBeanNamein interface- BeanNameAware
 
- 
setApplicationEventPublisher- Specified by:
- setApplicationEventPublisherin interface- ApplicationEventPublisherAware
 
- 
setChannelResolverSet the handler's channel resolver.- Parameters:
- channelResolver- the channel resolver to set.
 
- 
setOutputChannelSet the handler's output channel.- Parameters:
- outputChannel- the output channel to set.
 
- 
setOutputChannelNameSet the handler's output channel name.- Parameters:
- outputChannelName- the output channel bean name to set.
- Since:
- 5.1.4
 
- 
setOrderSet the order in which the handler will be subscribed to its channel (when subscribable).- Parameters:
- order- the order to set.
 
- 
setBeanFactory- Specified by:
- setBeanFactoryin interface- BeanFactoryAware
- Throws:
- BeansException
 
- 
getBeanFactory
- 
setAdviceChainSet the advice chain to be configured within anAbstractReplyProducingMessageHandlerto advise just this local endpoint. For other handlers, the advice chain is applied around the handler itself.- Parameters:
- adviceChain- the adviceChain to set.
 
- 
setAsyncCurrently only exposed on the service activator namespace. It's not clear that other endpoints would benefit from async support, but any subclass ofAbstractReplyProducingMessageHandlercan potentially return aListenableFuture<?>.- Parameters:
- async- the async to set.
- Since:
- 4.3
 
- 
setComponentNameSets the name of the handler component.- Parameters:
- componentName- The component name.
 
- 
getObject- Specified by:
- getObjectin interface- FactoryBean<H extends MessageHandler>
 
- 
createHandlerInternal
- 
createHandler
- 
getObjectType- Specified by:
- getObjectTypein interface- FactoryBean<H extends MessageHandler>
 
- 
getPreCreationHandlerTypeSubclasses can override this to return a more specific type before handler creation. After handler creation, the actual type is used.- Returns:
- the type.
 
- 
isSingletonpublic boolean isSingleton()- Specified by:
- isSingletonin interface- FactoryBean<H extends MessageHandler>
 
 
-