/** * Populate the {@code Wire Tap} EI Pattern specific * {@link org.springframework.messaging.support.ChannelInterceptor} implementation. * @param wireTapSpec the {@link WireTapSpec} to build {@link WireTap} instance. * @return the current {@link MessageChannelSpec}. * @since 1.2 * @see WireTap */ public S wireTap(WireTapSpec wireTapSpec) { WireTap interceptor = wireTapSpec.get(); this.componentsToRegister.add(interceptor); return interceptor(interceptor); }
/** * Populate the {@code Wire Tap} EI Pattern specific * {@link org.springframework.messaging.support.ChannelInterceptor} implementation. * @param wireTapSpec the {@link WireTapSpec} to build {@link WireTap} instance. * @return the current {@link MessageChannelSpec}. * @since 1.2 * @see WireTap */ public S wireTap(WireTapSpec wireTapSpec) { WireTap interceptor = wireTapSpec.get(); this.componentsToRegister.add(interceptor); return interceptor(interceptor); }