private String channelName(MessageChannel channel) { String name = null; if (this.integrationObjectSupportPresent) { if (channel instanceof IntegrationObjectSupport) { name = ((IntegrationObjectSupport) channel).getComponentName(); } if (name == null && channel instanceof AbstractMessageChannel) { name = ((AbstractMessageChannel) channel).getFullChannelName(); } } if (name == null) { name = channel.toString(); } return name; }
private String channelName(MessageChannel channel) { String name = null; if (this.integrationObjectSupportPresent) { if (channel instanceof IntegrationObjectSupport) { name = ((IntegrationObjectSupport) channel).getComponentName(); } if (name == null && channel instanceof AbstractMessageChannel) { name = ((AbstractMessageChannel) channel).getFullChannelName(); } } if (name == null) { name = channel.toString(); } return name; }