public class DefaultChannelExporter extends java.lang.Object implements ChannelExporter
DefaultListableBeanFactory
. Subclasses may override isInputChannel() and isOutputChannel() to implement an alternate
strategy.Constructor and Description |
---|
DefaultChannelExporter() |
Modifier and Type | Method and Description |
---|---|
org.springframework.integration.MessageChannel |
getInputChannel(java.util.Map<java.lang.String,org.springframework.integration.MessageChannel> channels) |
java.lang.String |
getInputChannelName() |
java.lang.String |
getOutputChannelPrefix() |
java.util.Map<java.lang.String,org.springframework.integration.MessageChannel> |
getOutputChannels(java.util.Map<java.lang.String,org.springframework.integration.MessageChannel> channels) |
<T extends org.springframework.integration.MessageChannel> |
getOutputChannels(java.util.Map<java.lang.String,org.springframework.integration.MessageChannel> channels,
java.lang.Class<T> requiredType) |
protected boolean |
isInputChannel(java.lang.String channelName,
org.springframework.integration.MessageChannel channel)
Determine if a given bean is the input channel
|
protected boolean |
isOutputChannel(java.lang.String channelName,
org.springframework.integration.MessageChannel channel)
Determine if a given bean is an output channel
|
protected void |
setInputChannelName(java.lang.String inputChannelName) |
protected void |
setOutputChannelPrefix(java.lang.String outputChannelPrefix) |
public org.springframework.integration.MessageChannel getInputChannel(java.util.Map<java.lang.String,org.springframework.integration.MessageChannel> channels)
getInputChannel
in interface ChannelExporter
public java.util.Map<java.lang.String,org.springframework.integration.MessageChannel> getOutputChannels(java.util.Map<java.lang.String,org.springframework.integration.MessageChannel> channels)
getOutputChannels
in interface ChannelExporter
protected boolean isOutputChannel(java.lang.String channelName, org.springframework.integration.MessageChannel channel)
channelName
- channel
- the MessageChannelprotected boolean isInputChannel(java.lang.String channelName, org.springframework.integration.MessageChannel channel)
channelName
- channel
- the MessageChannelpublic java.lang.String getInputChannelName()
protected void setInputChannelName(java.lang.String inputChannelName)
public java.lang.String getOutputChannelPrefix()
protected void setOutputChannelPrefix(java.lang.String outputChannelPrefix)
outputChannelPrefix
- the outputChannelPrefix to setpublic <T extends org.springframework.integration.MessageChannel> java.util.Map<java.lang.String,T> getOutputChannels(java.util.Map<java.lang.String,org.springframework.integration.MessageChannel> channels, java.lang.Class<T> requiredType)
getOutputChannels
in interface ChannelExporter