Doc Polishing

- remove discussion about `@RabbitListeners`; pre java-8 is no longer supported.
This commit is contained in:
Gary Russell
2020-05-14 17:04:15 -04:00
parent 42f8bd55a6
commit 29f3d0d213
2 changed files with 4 additions and 9 deletions

View File

@@ -323,20 +323,16 @@ public abstract class AbstractRabbitAnnotationDrivenTests {
@Component
static class RabbitListenersBean {
@RabbitListeners({
@RabbitListener(id = "first", queues = "myQueue"),
@RabbitListener(id = "second", queues = "anotherQueue")
})
@RabbitListener(id = "first", queues = "myQueue")
@RabbitListener(id = "second", queues = "anotherQueue")
public void repeatableHandle(String msg) {
}
}
@Component
@RabbitListeners({
@RabbitListener(id = "third", queues = "class1"),
@RabbitListener(id = "fourth", queues = "class2")
})
@RabbitListener(id = "third", queues = "class1")
@RabbitListener(id = "fourth", queues = "class2")
static class ClassLevelListenersBean {
@RabbitHandler

View File

@@ -2851,7 +2851,6 @@ This means that the annotation can appear on the same annotated element (method
In this case, a separate listener container is created for each annotation, each of which invokes the same listener
`@Bean`.
Repeatable annotations can be used with Java 8 or above.
When using Java 7 or earlier, you can achieve the same effect by using the `@RabbitListeners` "`container`" annotation, with an array of `@RabbitListener` annotations.
====== Proxy `@RabbitListener` and Generics