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 Summary
Fields inherited from class org.springframework.integration.config.AbstractSimpleMessageHandlerFactoryBean
logger
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected void
protected AbstractMessageRouter
configureRouter
(AbstractMessageRouter router) protected MessageHandler
createExpressionEvaluatingHandler
(Expression expression) protected MessageHandler
createMethodInvokingHandler
(Object targetObject, String targetMethodName) Subclasses must implement this method to create the MessageHandler.protected AbstractMappingMessageRouter
createMethodInvokingRouter
(Object targetObject, String targetMethodName) protected Class<? extends MessageHandler>
Subclasses can override this to return a more specific type before handler creation.protected boolean
void
setApplySequence
(Boolean applySequence) void
setChannelMappings
(Map<String, String> channelMappings) void
setDefaultOutputChannel
(MessageChannel defaultOutputChannel) void
setDefaultOutputChannelName
(String defaultOutputChannelName) void
setIgnoreSendFailures
(Boolean ignoreSendFailures) void
setResolutionRequired
(Boolean resolutionRequired) Methods inherited from class org.springframework.integration.config.AbstractStandardMessageHandlerFactoryBean
checkForIllegalTarget, createDefaultHandler, createHandler, createMessageProcessingHandler, destroy, getSendTimeout, methodIsHandleMessageOrEmpty, postProcessReplyProducer, setExpression, setExpressionString, setRequiresReply, setSendTimeout, setTargetMethodName, setTargetObject
Methods inherited from class org.springframework.integration.config.AbstractSimpleMessageHandlerFactoryBean
createHandlerInternal, getBeanFactory, getObject, getObjectType, isSingleton, setAdviceChain, setApplicationContext, setApplicationEventPublisher, setAsync, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setOrder, setOutputChannel, setOutputChannelName
-
Constructor Details
-
RouterFactoryBean
public RouterFactoryBean()
-
-
Method Details
-
setDefaultOutputChannel
-
setDefaultOutputChannelName
-
setResolutionRequired
-
setApplySequence
-
setIgnoreSendFailures
-
setChannelMappings
-
createMethodInvokingHandler
Description copied from class:AbstractStandardMessageHandlerFactoryBean
Subclasses must implement this method to create the MessageHandler.- Specified by:
createMethodInvokingHandler
in classAbstractStandardMessageHandlerFactoryBean
- Parameters:
targetObject
- the object to use for method invocation.targetMethodName
- the method name of the target object to invoke.- Returns:
- the method invoking
MessageHandler
implementation.
-
createExpressionEvaluatingHandler
- Overrides:
createExpressionEvaluatingHandler
in classAbstractStandardMessageHandlerFactoryBean
-
createMethodInvokingRouter
protected AbstractMappingMessageRouter createMethodInvokingRouter(Object targetObject, String targetMethodName) -
configureRouter
-
configureMappingRouter
-
canBeUsedDirect
- Overrides:
canBeUsedDirect
in classAbstractStandardMessageHandlerFactoryBean
-
noRouterAttributesProvided
protected boolean noRouterAttributesProvided() -
getPreCreationHandlerType
Description copied from class:AbstractSimpleMessageHandlerFactoryBean
Subclasses can override this to return a more specific type before handler creation. After handler creation, the actual type is used.- Overrides:
getPreCreationHandlerType
in classAbstractSimpleMessageHandlerFactoryBean<MessageHandler>
- Returns:
- the type.
-