From 32dfe64c0fd6c3f9212a642b3fb5896f98e6f17f Mon Sep 17 00:00:00 2001 From: kske Date: Sun, 14 Mar 2021 11:44:56 +0100 Subject: [PATCH] Add listener-level properties section to README --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 01fd4c6..876dc83 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,13 @@ private void onSimpleEvent() { Make sure that you **do not** both declare a parameter and specify the event type in the annotation, as this would be ambiguous. +## Listener-Level Properties + +When defining a dedicated event listener that, for example, performs pre- or post-processing, all event handlers will probably have the same non-standard priority. +Instead of defining that priority for each handler, it can be defined at the listener level by annotating the listener itself. + +The same applies to polymorphism. + ## Event Consumption In some cases it might be useful to stop the propagation of an event.