Define Priority and Polymorphism at Listener Level #10
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In common use cases, the event handlers inside a listener have the same priority, and in some cases are all polymorphic.
Instead of defining this per-handler and possibly mistyping a priority or forgetting an annotation,
@Priority
and@Polymorphic
could be allowed at a class level and thus per-listener.The handler properties defined at a listener level would then be used by handlers without explicit definitions.
To allow the negation of listener-level polymorphy on a single handler,
@Polymorphic
should be extended with a boolean value that defaults totrue
.