Package org.springframework.integration.channel

Examples of org.springframework.integration.channel.ChannelInterceptorAware


  private void unbindTapChannel(String tapChannelName) {
    // Should this be unbindProducer() as there won't be multiple producers on the tap channel.
    MessageChannel tappedChannel = tappableChannels.remove(tapChannelName);
    if (tappedChannel instanceof ChannelInterceptorAware) {
      ChannelInterceptorAware interceptorAware = ((ChannelInterceptorAware) tappedChannel);
      List<ChannelInterceptor> interceptors = new ArrayList<ChannelInterceptor>();
      for (ChannelInterceptor interceptor : interceptorAware.getChannelInterceptors()) {
        if (interceptor instanceof WireTap) {
          ((WireTap) interceptor).stop();
        }
        else {
          interceptors.add(interceptor);
        }
      }
      interceptorAware.setInterceptors(interceptors);
      messageBus.unbindProducers(tapChannelName);
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.integration.channel.ChannelInterceptorAware

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.