Add reference to Order for event listeners

master
Stephane Nicoll 9 years ago
parent 0417b89a9d
commit d32216a047
  1. 13
      src/asciidoc/core-beans.adoc

@ -7852,6 +7852,19 @@ This new method will publish a new `ListUpdateEvent` for every `BlackListEvent`
by the method above. If you need to publish several events, just return a `Collection` of
events instead.
Finally if you need the listener to be invoked before another one, just add the `@Order`
annotation to the method declaration:
[source,java,indent=0]
[subs="verbatim,quotes"]
----
@EventListener
@Order(42)
public void processBlackListEvent(BlackListEvent event) {
// notify appropriate parties via notificationAddress...
}
----
[[context-functionality-events-generics]]
==== Generic Events

Loading…
Cancel
Save