Define Priority and Polymorphism at Listener Level #10

Closed
opened 2021-02-20 22:04:06 +01:00 by kske · 0 comments
Owner

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 to true.

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 to `true`.
kske added the
enhancement
label 2021-02-20 22:04:06 +01:00
kske self-assigned this 2021-02-20 22:04:06 +01:00
kske added the
core
proc
labels 2021-02-20 22:21:36 +01:00
kske added the
13
should have
labels 2021-03-14 14:08:02 +01:00
kske closed this issue 2021-03-17 07:56:22 +01:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: zdm/event-bus#10
No description provided.