You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
* GitHub username change: joel-jeremy* Update README* Update rootProject.name* Optimize build* Cleanup* Depend on JacocoReport instead of JacocoCoverageReport* Update version from alpha to beta
Deezpatch jars are published with Automatic-Module-Name manifest attribute:
41
41
42
-
- Core -`io.github.joeljeremy7.deezpatch.core`
42
+
- Core -`io.github.joeljeremy.deezpatch.core`
43
43
44
44
Module authors can use above module names in their module-info.java:
45
45
46
46
```java
47
47
module foo.bar {
48
-
requires io.github.joeljeremy7.deezpatch.core;
48
+
requires io.github.joeljeremy.deezpatch.core;
49
49
}
50
50
```
51
51
52
52
##🚀 Performance
53
53
54
54
What differentiates Deezpatch from other messaging/dispatch libraries? The library takes advantage of the benefits provided by[java.lang.invoke.LambdaMetafactory](https://docs.oracle.com/javase/8/docs/api/java/lang/invoke/LambdaMetafactory.html) to avoid the cost of invoking methods reflectively. This results in performance close to directly invoking the request handler and event handler methods!
@@ -84,7 +84,7 @@ public class PingQuery implements Request<Pong> {}
84
84
85
85
##📨 Request Handlers
86
86
87
-
Requests are handled by request handlers. Request handlers can be registered through the use of the[@RequestHandler](core/src/main/java/io/github/joeljeremy7/deezpatch/core/RequestHandler.java) annotation.
87
+
Requests are handled by request handlers. Request handlers can be registered through the use of the[@RequestHandler](core/src/main/java/io/github/joeljeremy/deezpatch/core/RequestHandler.java) annotation.
88
88
89
89
A request must only have a single request handler.
90
90
@@ -149,7 +149,7 @@ public class GreetedEvent implements Event {
149
149
150
150
##📨 Event Handlers
151
151
152
-
Events are handled by event handlers. Event handlers can be registered through the use of the[@EventHandler](core/src/main/java/io/github/joeljeremy7/deezpatch/core/EventHandler.java) annotation.
152
+
Events are handled by event handlers. Event handlers can be registered through the use of the[@EventHandler](core/src/main/java/io/github/joeljeremy/deezpatch/core/EventHandler.java) annotation.
153
153
154
154
An event can have zero or more event handlers.
155
155
@@ -193,7 +193,7 @@ public static void main(String[] args) {
193
193
194
194
##🔩 Easy Integration with Dependency Injection (DI) Frameworks
195
195
196
-
The library provides a[InstanceProvider](core/src/main/java/io/github/joeljeremy7/deezpatch/core/InstanceProvider.java) to let users customize how request/event handler instances should be instantiated. This can be as simple as`new`-ing up request/event handlers or getting instances from a DI framework such as Spring's`ApplicationContext`, Guice's`Injector`, etc.
196
+
The library provides a[InstanceProvider](core/src/main/java/io/github/joeljeremy/deezpatch/core/InstanceProvider.java) to let users customize how request/event handler instances should be instantiated. This can be as simple as`new`-ing up request/event handlers or getting instances from a DI framework such as Spring's`ApplicationContext`, Guice's`Injector`, etc.