public class ChannelProducer extends Object implements Producer
| Constructor and Description |
|---|
ChannelProducer(String name,
ChannelEndpointConfiguration endpointConfiguration)
Default constructor using endpoint configuration.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.messaging.MessageChannel |
getDestinationChannel()
Get the destination channel depending on settings in this message sender.
|
protected String |
getDestinationChannelName()
Gets the channel name depending on what is set in this message sender.
|
String |
getName()
Gets the producer name.
|
protected org.springframework.messaging.MessageChannel |
resolveChannelName(String channelName)
Resolve the channel by name.
|
void |
send(Message message,
TestContext context)
Sends the message.
|
public ChannelProducer(String name, ChannelEndpointConfiguration endpointConfiguration)
name - endpointConfiguration - public void send(Message message, TestContext context)
Producerprotected org.springframework.messaging.MessageChannel getDestinationChannel()
protected String getDestinationChannelName()
protected org.springframework.messaging.MessageChannel resolveChannelName(String channelName)
channelName - the name to resolveCopyright © 2008–2015 ConSol* Consulting&Solutions GmbH. All rights reserved.