public class RouterFactoryBean extends AbstractStandardMessageHandlerFactoryBean
logger| Constructor and Description |
|---|
RouterFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canBeUsedDirect(AbstractMessageProducingHandler handler) |
protected void |
configureMappingRouter(AbstractMappingMessageRouter router) |
protected AbstractMessageRouter |
configureRouter(AbstractMessageRouter router) |
protected org.springframework.messaging.MessageHandler |
createExpressionEvaluatingHandler(org.springframework.expression.Expression expression) |
protected org.springframework.messaging.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 org.springframework.messaging.MessageHandler> |
getPreCreationHandlerType()
Subclasses can override this to return a more specific type before handler creation.
|
protected boolean |
noRouterAttributesProvided() |
void |
setApplySequence(Boolean applySequence) |
void |
setChannelMappings(Map<String,String> channelMappings) |
void |
setDefaultOutputChannel(org.springframework.messaging.MessageChannel defaultOutputChannel) |
void |
setDefaultOutputChannelName(String defaultOutputChannelName) |
void |
setIgnoreSendFailures(Boolean ignoreSendFailures) |
void |
setResolutionRequired(Boolean resolutionRequired) |
void |
setSendTimeout(Long timeout) |
void |
setTimeout(Long timeout)
Deprecated.
in favor of
setSendTimeout(Long). |
checkForIllegalTarget, createDefaultHandler, createHandler, createMessageProcessingHandler, extractTypeIfPossible, methodIsHandleMessageOrEmpty, postProcessReplyProducer, setExpression, setExpressionString, setTargetMethodName, setTargetObjectcreateHandlerInternal, getBeanFactory, getObject, getObjectType, isSingleton, setAdviceChain, setApplicationContext, setApplicationEventPublisher, setAsync, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setOrder, setOutputChannelpublic void setDefaultOutputChannel(org.springframework.messaging.MessageChannel defaultOutputChannel)
public void setDefaultOutputChannelName(String defaultOutputChannelName)
@Deprecated public void setTimeout(Long timeout)
setSendTimeout(Long).timeout - the timeout.public void setSendTimeout(Long timeout)
public void setResolutionRequired(Boolean resolutionRequired)
public void setApplySequence(Boolean applySequence)
public void setIgnoreSendFailures(Boolean ignoreSendFailures)
protected org.springframework.messaging.MessageHandler createMethodInvokingHandler(Object targetObject, String targetMethodName)
AbstractStandardMessageHandlerFactoryBeancreateMethodInvokingHandler in class AbstractStandardMessageHandlerFactoryBeantargetObject - the object to use for method invocation.targetMethodName - the method name of the target object to invoke.MessageHandler implementation.protected org.springframework.messaging.MessageHandler createExpressionEvaluatingHandler(org.springframework.expression.Expression expression)
createExpressionEvaluatingHandler in class AbstractStandardMessageHandlerFactoryBeanprotected AbstractMappingMessageRouter createMethodInvokingRouter(Object targetObject, String targetMethodName)
protected AbstractMessageRouter configureRouter(AbstractMessageRouter router)
protected void configureMappingRouter(AbstractMappingMessageRouter router)
protected boolean canBeUsedDirect(AbstractMessageProducingHandler handler)
canBeUsedDirect in class AbstractStandardMessageHandlerFactoryBeanprotected boolean noRouterAttributesProvided()
protected Class<? extends org.springframework.messaging.MessageHandler> getPreCreationHandlerType()
AbstractSimpleMessageHandlerFactoryBeangetPreCreationHandlerType in class AbstractSimpleMessageHandlerFactoryBean<org.springframework.messaging.MessageHandler>