Commit Graph

33 Commits

Author SHA1 Message Date
Kai S. K. Engelbart 722bf2b999
Test priorities for inheritance
zdm/event-bus/pipeline/head This commit looks good Details
2022-01-12 15:59:45 +01:00
Kai S. K. Engelbart 7fb633d69f
Inherit event handlers
zdm/event-bus/pipeline/head This commit looks good Details
When registering an event listener, Event Bus recursively walks the
entire inheritance tree and looks for event handlers.
2022-01-09 14:16:30 +01:00
Leon Hofmeister adbcc64e94
Add ExceptionWrapper documentation 2022-01-08 16:44:49 +01:00
Kai S. K. Engelbart 856a2e8cbf
Bump version to 1.2.0 2021-11-26 15:54:37 +01:00
Kai S. K. Engelbart 5a6d8bcf35
Rename EventBus#printExecutionOrder(Class) to debugExecutionOrder
The method doesn't print anything, but rather returns a string
containing the debug information.
2021-11-25 14:34:13 +01:00
Kai S. K. Engelbart 39ffb5c82a
Fix module-info instructions in README
Reflective access has to be allowed from the Event Bus core package to a
package in the user's project, not the entire module. Thank you @delvh
for noticing this!
2021-11-25 14:29:06 +01:00
Kai S. K. Engelbart 3fccb809c8
Move installation section up in README 2021-11-24 10:49:30 +01:00
Kai S. K. Engelbart d1c4bcc7eb
Add callback listener section to README 2021-11-24 10:45:58 +01:00
Kai S. K. Engelbart ad29a93ccb
Add debugging section to README 2021-11-24 10:37:21 +01:00
Kai S. K. Engelbart b758f4cef1
Remove obsolete paragraph from README 2021-04-04 10:09:12 +02:00
Kai S. K. Engelbart 0dcad7d178
Bump version to 1.1.0 2021-03-28 10:37:41 +02:00
Kai S. K. Engelbart 32dfe64c0f
Add listener-level properties section to README 2021-03-14 11:44:56 +01:00
Kai S. K. Engelbart 7c3cd017de
Add system events section to README 2021-02-21 13:50:12 +01:00
Kai S. K. Engelbart 4a5b94a9b7
Allow event handlers with non-void return type
Also removed unnecessary files from the Event Bus Proc JAR and
configured GPG signing as well as deployment to Sonatype OSSRH.
2021-02-19 11:14:43 +01:00
Kai S. K. Engelbart ff35e7f37d
Fix several edge cases in EventProcessor
When encountering an event handler with an invalid signature, the
processor doesn't crash anymore. Also, event parameters that aren't
objects are now reported as errors.
2021-02-17 08:22:48 +01:00
Kai S. K. Engelbart 002180ed3b
Remove EventListener and IEvent marker interfaces
This allows Event Bus to interface with existing classes without
modification.
2021-02-15 20:36:09 +01:00
Kai S. K. Engelbart cd2e7ad023
Rename Event#eventType to Event#value for more concise usage 2021-02-15 13:42:20 +01:00
Kai S. K. Engelbart 9b1c708514
Replace priority with @Priority
The new @Priority annotation serves the exact same purpose as
@Event(priority = ...), but should be easier to read in complex handler
declarations. It has to be used in conjunction with the @Event
annotation, not instead of it.
2021-02-15 12:06:33 +01:00
Kai S. K. Engelbart 3a6ebe9a19
Replace includeSubtypes with @Polymorphic
The new @Polymorphic annotation serves the exact same purpose as
@Event(includeSubtypes = true), but should be easier to read in complex
handler declarations. It has to be used in conjunction with the @Event
annotation, not instead of it.
2021-02-15 10:55:30 +01:00
Kai S. K. Engelbart 955e2d82b4
Add Event Bus AP section to README
Additionally bump version to 1.0.0 and adjust package names.
2021-02-14 21:48:24 +01:00
Kai S. K. Engelbart 273531e352
Link the Maven repository in README 2021-01-08 09:45:07 +01:00
Kai S. K. Engelbart 8b1e3a8c4a
Rewrite a paragraph in README 2021-01-03 17:00:20 +01:00
Kai S. K. Engelbart 0e5f31b63e
Merge branch 'develop' into f/cancel-event
Conflicts:
	src/test/java/dev/kske/eventbus/EventBusTest.java
2020-11-26 08:16:01 +01:00
Leon Hofmeister 9d1707de5b
Add event consumption section to README 2020-10-11 11:31:51 +02:00
Leon Hofmeister cd2598d5d3 Add Section About Static Methods in README (#2)
Add paragraph about static methods in README

Co-authored-by: kske <kai@kske.dev>
Reviewed-on: https://git.kske.dev/zdm/event-bus/pulls/2
Reviewed-by: kske <kai@kske.dev>
2020-09-26 09:59:08 +02:00
Kai S. K. Engelbart b6b73d335a
Add logging to EventBus using the Platform Logging API 2020-09-20 15:28:13 +02:00
Leon Hofmeister 8cf51441ad Add priority section to README 2020-09-20 14:35:50 +02:00
Kai S. K. Engelbart ba06b49368
Add subtype inclusion for event handlers 2020-09-20 12:20:29 +02:00
Kai S. K. Engelbart 7a3debe444
Support parameter-less event handlers
- Add eventType value to Event
- Move semantic event handler checks to EventHandler
- Use Objects#requireNonNull(T) on public API method parameters
- Update README with a parameter-less event handlers section
2020-09-08 20:13:42 +02:00
Kai S. K. Engelbart bdf7dcfeda
Use singleton EventBus in README and unit test 2020-09-08 09:38:46 +02:00
Kai S. K. Engelbart 83010942f1
Add installation instructions 2020-09-08 08:43:52 +02:00
Kai S. K. Engelbart 2cc7e722b6
Add description and example to README 2020-09-08 08:43:51 +02:00
Kai S. K. Engelbart be7696c7d4
Initial commit 2020-09-08 08:43:39 +02:00