Define Priority and Polymorphism at Listener Level #10
Labels
No Label
1
13
2
21
3
34
5
55
8
bug
core
could have
duplicate
enhancement
help wanted
must have
proc
question
should have
wont have
L
M
S
XL
bug
bugfix
discussion
documentation
feature
maintenance
postponed
refactoring
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: zdm/event-bus#10
Loading…
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
.