@Override public MessageChannel getOutputChannel() { if (this.outputChannelName != null) { this.outputChannel = getChannelResolver().resolveDestination(this.outputChannelName); this.outputChannelName = null; } return this.outputChannel; }
protected Object resolveErrorChannel(final MessageHeaders requestHeaders) { Object errorChannel = requestHeaders.getErrorChannel(); if (errorChannel == null) { try { errorChannel = getChannelResolver().resolveDestination("errorChannel"); } catch (DestinationResolutionException e) { // ignore } } return errorChannel; }
@Override protected void onInit() { super.onInit(); Assert.state(!(this.outputChannelName != null && this.outputChannel != null), //NOSONAR (inconsistent sync) "'outputChannelName' and 'outputChannel' are mutually exclusive."); if (getBeanFactory() != null) { this.messagingTemplate.setBeanFactory(getBeanFactory()); } this.messagingTemplate.setDestinationResolver(getChannelResolver()); }
@Override public MessageChannel getOutputChannel() { if (this.outputChannelName != null) { this.outputChannel = getChannelResolver().resolveDestination(this.outputChannelName); this.outputChannelName = null; } return this.outputChannel; }
protected Object resolveErrorChannel(final MessageHeaders requestHeaders) { Object errorChannel = requestHeaders.getErrorChannel(); if (errorChannel == null) { try { errorChannel = getChannelResolver().resolveDestination("errorChannel"); } catch (DestinationResolutionException e) { // ignore } } return errorChannel; }
@Override protected void onInit() { super.onInit(); Assert.state(!(this.outputChannelName != null && this.outputChannel != null), //NOSONAR (inconsistent sync) "'outputChannelName' and 'outputChannel' are mutually exclusive."); if (getBeanFactory() != null) { this.messagingTemplate.setBeanFactory(getBeanFactory()); } this.messagingTemplate.setDestinationResolver(getChannelResolver()); }