From 4acabdf25f455bac4675debc4625cb8aeba2b61c Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Tue, 1 Feb 2022 11:35:06 -0500 Subject: [PATCH] Remove declareCollections from Doc Incorrectly left over after the property was removed in 2.2. --- src/reference/asciidoc/amqp.adoc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/reference/asciidoc/amqp.adoc b/src/reference/asciidoc/amqp.adoc index 07d2e840..9b0afbaa 100644 --- a/src/reference/asciidoc/amqp.adoc +++ b/src/reference/asciidoc/amqp.adoc @@ -5169,8 +5169,6 @@ public static class Config { IMPORTANT: In versions prior to 2.1, you could declare multiple `Declarable` instances by defining beans of type `Collection`. This can cause undesirable side effects in some cases, because the admin has to iterate over all `Collection` beans. -This feature is now disabled in favor of `Declarables`, as discussed earlier in this section. -You can revert to the previous behavior by setting the `RabbitAdmin` property called `declareCollections` to `true`. Version 2.2 added the `getDeclarablesByType` method to `Declarables`; this can be used as a convenience, for example, when declaring the listener container bean(s).