Skip to content

Commit

Permalink
Remove declareCollections from Doc
Browse files Browse the repository at this point in the history
Incorrectly left over after the property was removed in 2.2.
  • Loading branch information
garyrussell committed Feb 1, 2022
1 parent c27d966 commit 4309ff3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/reference/asciidoc/amqp.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5094,8 +5094,6 @@ public static class Config {

IMPORTANT: In versions prior to 2.1, you could declare multiple `Declarable` instances by defining beans of type `Collection<Declarable>`.
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).

Expand Down

0 comments on commit 4309ff3

Please sign in to comment.