From b865f3cbe9aeaf0feceaf013a947dfa4c1c79044 Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Fri, 10 Nov 2017 13:36:09 -0500 Subject: [PATCH] RGH-83: Allow binders to add interceptors Resolves https://github.com/spring-cloud/spring-cloud-stream-binder-rabbit/issues/83 The RabbitMQ binder needs to add an interceptor to evaluate expressions (if they include `payload`) before the payload is serialized. Add a hook to allow the binder to post-process the message channel. Resolves #1134 --- .../cloud/stream/binder/AbstractBinder.java | 4 ++-- .../stream/binder/AbstractMessageChannelBinder.java | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binder/AbstractBinder.java b/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binder/AbstractBinder.java index 7df341865..a90e027c6 100644 --- a/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binder/AbstractBinder.java +++ b/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binder/AbstractBinder.java @@ -97,8 +97,8 @@ public abstract class AbstractBinder