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 AbstractSimpleMessageHandlerFactoryBean
loggerFields inherited from interface FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected voidprotected AbstractMessageRouterconfigureRouter(AbstractMessageRouter router) protected MessageHandlercreateExpressionEvaluatingHandler(Expression expression) protected MessageHandlercreateMethodInvokingHandler(Object targetObject, @Nullable String targetMethodName) Subclasses must implement this method to create the MessageHandler.protected AbstractMappingMessageRoutercreateMethodInvokingRouter(Object targetObject, @Nullable 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 AbstractStandardMessageHandlerFactoryBean
checkForIllegalTarget, createDefaultHandler, createHandler, createMessageProcessingHandler, destroy, getSendTimeout, methodIsHandleMessageOrEmpty, postProcessReplyProducer, setExpression, setExpressionString, setRequiresReply, setSendTimeout, setTargetMethodName, setTargetObjectMethods inherited from class 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
-
setPrefix
-
setSuffix
-
setResolutionRequired
-
setApplySequence
-
setIgnoreSendFailures
-
setChannelMappings
-
createMethodInvokingHandler
protected MessageHandler createMethodInvokingHandler(Object targetObject, @Nullable String targetMethodName) Description copied from class:AbstractStandardMessageHandlerFactoryBeanSubclasses must implement this method to create the MessageHandler.- Specified by:
createMethodInvokingHandlerin classAbstractStandardMessageHandlerFactoryBean- 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 classAbstractStandardMessageHandlerFactoryBean
-
createMethodInvokingRouter
protected AbstractMappingMessageRouter createMethodInvokingRouter(Object targetObject, @Nullable String targetMethodName) -
configureRouter
-
configureMappingRouter
-
canBeUsedDirect
- Overrides:
canBeUsedDirectin classAbstractStandardMessageHandlerFactoryBean
-
noRouterAttributesProvided
protected boolean noRouterAttributesProvided() -
getPreCreationHandlerType
Description 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 classAbstractSimpleMessageHandlerFactoryBean<MessageHandler>- Returns:
- the type.
-