K
- the key type.R
- the AbstractMappingMessageRouter
implementation type.public final class RouterSpec<K,R extends org.springframework.integration.router.AbstractMappingMessageRouter> extends AbstractRouterSpec<RouterSpec<K,R>,R> implements ComponentsRegistration
AbstractRouterSpec
for an AbstractMappingMessageRouter
.subFlows
logger, PARSER, target
Modifier and Type | Method and Description |
---|---|
RouterSpec<K,R> |
channelMapping(K key,
java.lang.String channelName) |
java.util.Collection<java.lang.Object> |
getComponentsToRegister() |
RouterSpec<K,R> |
prefix(java.lang.String prefix)
Cannot be invoked if
subFlowMapping(Object, IntegrationFlow) is used. |
RouterSpec<K,R> |
resolutionRequired(boolean resolutionRequired) |
RouterSpec<K,R> |
subFlowMapping(K key,
IntegrationFlow subFlow)
Add a subflow as an alternative to a
channelMapping(Object, String) . |
RouterSpec<K,R> |
suffix(java.lang.String suffix)
Cannot be invoked if
subFlowMapping(Object, IntegrationFlow) is used. |
applySequence, defaultOutputChannel, defaultOutputChannel, defaultOutputToParentFlow, defaultSubFlowMapping, ignoreSendFailures
_this, doGet, get, getId, getObject, getObjectType, id, isSingleton
public RouterSpec<K,R> resolutionRequired(boolean resolutionRequired)
resolutionRequired
- the resolutionRequired.AbstractMappingMessageRouter.setResolutionRequired(boolean)
public RouterSpec<K,R> prefix(java.lang.String prefix)
subFlowMapping(Object, IntegrationFlow)
is used.prefix
- the prefix.AbstractMappingMessageRouter.setPrefix(String)
public RouterSpec<K,R> suffix(java.lang.String suffix)
subFlowMapping(Object, IntegrationFlow)
is used.suffix
- the suffix to set.AbstractMappingMessageRouter.setSuffix(String)
public RouterSpec<K,R> channelMapping(K key, java.lang.String channelName)
key
- the key.channelName
- the channelName.AbstractMappingMessageRouter.setChannelMapping(String, String)
public RouterSpec<K,R> subFlowMapping(K key, IntegrationFlow subFlow)
channelMapping(Object, String)
.
prefix(String)
and suffix(String)
cannot be used when subflow
mappings are used.key
- the key.subFlow
- the subFlow.public java.util.Collection<java.lang.Object> getComponentsToRegister()
getComponentsToRegister
in interface ComponentsRegistration
getComponentsToRegister
in class AbstractRouterSpec<RouterSpec<K,R extends org.springframework.integration.router.AbstractMappingMessageRouter>,R extends org.springframework.integration.router.AbstractMappingMessageRouter>