Class RouterFactoryBean
java.lang.Object
org.springframework.integration.config.AbstractSimpleMessageHandlerFactoryBean<MessageHandler>
org.springframework.integration.config.AbstractStandardMessageHandlerFactoryBean
org.springframework.integration.config.RouterFactoryBean
- All Implemented Interfaces:
- Aware,- BeanFactoryAware,- BeanNameAware,- DisposableBean,- FactoryBean<MessageHandler>,- ApplicationContextAware,- ApplicationEventPublisherAware
Factory bean for creating a Message Router.
- Author:
- Mark Fisher, Jonas Partner, Oleg Zhurakousky, Dave Syer, Gary Russell, David Liu, Artem Bilan
- 
Field SummaryFields inherited from class org.springframework.integration.config.AbstractSimpleMessageHandlerFactoryBeanloggerFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanprotected voidprotected AbstractMessageRouterconfigureRouter(AbstractMessageRouter router) protected MessageHandlercreateExpressionEvaluatingHandler(Expression expression) protected MessageHandlercreateMethodInvokingHandler(Object targetObject, String targetMethodName) Subclasses must implement this method to create the MessageHandler.protected AbstractMappingMessageRoutercreateMethodInvokingRouter(Object targetObject, String targetMethodName) protected Class<? extends MessageHandler> Subclasses can override this to return a more specific type before handler creation.protected booleanvoidsetApplySequence(Boolean applySequence) voidsetChannelMappings(Map<String, String> channelMappings) voidsetDefaultOutputChannel(MessageChannel defaultOutputChannel) voidsetDefaultOutputChannelName(String defaultOutputChannelName) voidsetIgnoreSendFailures(Boolean ignoreSendFailures) voidvoidsetResolutionRequired(Boolean resolutionRequired) voidMethods inherited from class org.springframework.integration.config.AbstractStandardMessageHandlerFactoryBeancheckForIllegalTarget, createDefaultHandler, createHandler, createMessageProcessingHandler, destroy, getSendTimeout, methodIsHandleMessageOrEmpty, postProcessReplyProducer, setExpression, setExpressionString, setRequiresReply, setSendTimeout, setTargetMethodName, setTargetObjectMethods inherited from class org.springframework.integration.config.AbstractSimpleMessageHandlerFactoryBeancreateHandlerInternal, getBeanFactory, getObject, getObjectType, isSingleton, setAdviceChain, setApplicationContext, setApplicationEventPublisher, setAsync, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setOrder, setOutputChannel, setOutputChannelName
- 
Constructor Details- 
RouterFactoryBeanpublic RouterFactoryBean()
 
- 
- 
Method Details- 
setDefaultOutputChannel
- 
setDefaultOutputChannelName
- 
setPrefix
- 
setSuffix
- 
setResolutionRequired
- 
setApplySequence
- 
setIgnoreSendFailures
- 
setChannelMappings
- 
createMethodInvokingHandlerDescription copied from class:AbstractStandardMessageHandlerFactoryBeanSubclasses must implement this method to create the MessageHandler.- Specified by:
- createMethodInvokingHandlerin class- AbstractStandardMessageHandlerFactoryBean
- Parameters:
- targetObject- the object to use for method invocation.
- targetMethodName- the method name of the target object to invoke.
- Returns:
- the method invoking MessageHandlerimplementation.
 
- 
createExpressionEvaluatingHandler- Overrides:
- createExpressionEvaluatingHandlerin class- AbstractStandardMessageHandlerFactoryBean
 
- 
createMethodInvokingRouterprotected AbstractMappingMessageRouter createMethodInvokingRouter(Object targetObject, String targetMethodName) 
- 
configureRouter
- 
configureMappingRouter
- 
canBeUsedDirect- Overrides:
- canBeUsedDirectin class- AbstractStandardMessageHandlerFactoryBean
 
- 
noRouterAttributesProvidedprotected boolean noRouterAttributesProvided()
- 
getPreCreationHandlerTypeDescription copied from class:AbstractSimpleMessageHandlerFactoryBeanSubclasses can override this to return a more specific type before handler creation. After handler creation, the actual type is used.- Overrides:
- getPreCreationHandlerTypein class- AbstractSimpleMessageHandlerFactoryBean<MessageHandler>
- Returns:
- the type.
 
 
-