コード例 #1
0
 /**
  * Invokes {@code setDefaultDestination(MessageChannel)} - provided for backward compatibility.
  *
  * @param channel the channel to set.
  */
 public void setDefaultChannel(MessageChannel channel) {
   super.setDefaultDestination(channel);
 }
コード例 #2
0
 /**
  * Create a MessagingTemplate with the given default channel.
  *
  * @param defaultChannel the default {@link MessageChannel} for {@code send} operations
  */
 public MessagingTemplate(MessageChannel defaultChannel) {
   super.setDefaultDestination(defaultChannel);
 }