|
Spring Integration | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.handler.AbstractMessageHandler
org.springframework.integration.router.AbstractMessageRouter
org.springframework.integration.router.AbstractChannelNameResolvingMessageRouter
public abstract class AbstractChannelNameResolvingMessageRouter
A base class for router implementations that return only the channel name(s)
rather than MessageChannel instances.
| Field Summary |
|---|
| Fields inherited from class org.springframework.integration.handler.AbstractMessageHandler |
|---|
logger |
| Fields inherited from interface org.springframework.core.Ordered |
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
| Constructor Summary | |
|---|---|
AbstractChannelNameResolvingMessageRouter()
|
|
| Method Summary | |
|---|---|
protected Collection<MessageChannel> |
determineTargetChannels(Message<?> message)
Subclasses must implement this method to return the target channels for a given Message. |
protected abstract List<Object> |
getChannelIndicatorList(Message<?> message)
Subclasses must implement this method to return the channel indicators. |
void |
onInit()
Subclasses may implement this for initialization logic. |
void |
setChannelResolver(ChannelResolver channelResolver)
Specify the ChannelResolver strategy to use. |
void |
setIgnoreChannelNameResolutionFailures(boolean ignoreChannelNameResolutionFailures)
Specify whether this router should ignore any failure to resolve a channel name to an actual MessageChannel instance when delegating to the ChannelResolver strategy. |
void |
setPrefix(String prefix)
Specify a prefix to be added to each channel name prior to resolution. |
void |
setSuffix(String suffix)
Specify a suffix to be added to each channel name prior to resolution. |
| Methods inherited from class org.springframework.integration.router.AbstractMessageRouter |
|---|
getComponentType, getMessagingTemplate, handleMessageInternal, setApplySequence, setDefaultOutputChannel, setIgnoreSendFailures, setResolutionRequired, setTimeout |
| Methods inherited from class org.springframework.integration.handler.AbstractMessageHandler |
|---|
getOrder, handleMessage, setOrder, setShouldTrack |
| Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
|---|
afterPropertiesSet, getBeanFactory, getComponentName, getConversionService, getRequiredMetadataPersister, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.springframework.integration.context.NamedComponent |
|---|
getComponentName |
| Constructor Detail |
|---|
public AbstractChannelNameResolvingMessageRouter()
| Method Detail |
|---|
public void setChannelResolver(ChannelResolver channelResolver)
ChannelResolver strategy to use.
The default is a BeanFactoryChannelResolver.
public void setPrefix(String prefix)
public void setSuffix(String suffix)
public void setIgnoreChannelNameResolutionFailures(boolean ignoreChannelNameResolutionFailures)
public void onInit()
IntegrationObjectSupport
onInit in class IntegrationObjectSupportprotected Collection<MessageChannel> determineTargetChannels(Message<?> message)
AbstractMessageRouter
determineTargetChannels in class AbstractMessageRouterprotected abstract List<Object> getChannelIndicatorList(Message<?> message)
|
Spring Integration | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||