diff --git a/docs/src/main/asciidoc/preface.adoc b/docs/src/main/asciidoc/preface.adoc index 92294c16a..17ad22928 100644 --- a/docs/src/main/asciidoc/preface.adoc +++ b/docs/src/main/asciidoc/preface.adoc @@ -176,3 +176,6 @@ compatibility you can still bring `spring-cloud-stream-reactive` from previous v - _Test support binder_ `spring-cloud-stream-test-support` with MessageCollector in favor of a new test binder. See <> for more details. - _@StreamMessageConverter_ - deprecated as it is no longer required. - The `original-content-type` header references have been removed after it's been deprecated in v2.0. +- The `BinderAwareChannelResolver` is deprecated in favor if providing `spring.cloud.stream.sendto.destination` property. +This is primarily for function-based programming model. For StreamListener it would still be required and thus will stay until we deprecate and eventually discontinue StreamListener +and annotation-based programming model. diff --git a/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binding/BinderAwareChannelResolver.java b/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binding/BinderAwareChannelResolver.java index 9fb85d0f3..69f3f17a7 100644 --- a/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binding/BinderAwareChannelResolver.java +++ b/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binding/BinderAwareChannelResolver.java @@ -36,7 +36,13 @@ import org.springframework.util.ObjectUtils; * @author Gary Russell * @author Ilayaperumal Gopinathan * @author Oleg Zhurakousky + * + * @deprecated As of 3.0.0 in favor if providing `spring.cloud.stream.sendto.destination` property. + * This is primarily for function-based programming model. For StreamListener it would still be + * required and thus will stay until we deprecate and eventually discontinue StreamListener + * and annotation-based programming model. */ +@Deprecated public class BinderAwareChannelResolver extends BeanFactoryMessageChannelDestinationResolver {