Magic4j - Cool quality features for your Java applications
magic4j will be the platform for my collection of very coool framework features, published as Open-Source Software under the Apache 2 License.
Feature 1: Enhanced Eventdriven Service Design ("EESD") with magic4j-cdi-utils
The magic4j-cdi-utils provide a feature that I call "Event-Observer Return Value Injection", which is an enhancement for the CDI-Event-Mechanism: It injects return values of observer methods into the Event-Producer Bean. This enables what I call "Enhanced-Eventdriven-Service-Design". This feature is available since magic4j-cdi-utils version 22.214.171.124.
Please see my EESD-blog with a complete tutorial.
Feature 2: The modernized "Chain Of Responsibility Pattern" with CDI
The modernized Chain Of Responsibility is based upon a generically implemented Interceptor that detects the appropriatly annotated Chain Handlers and invokes them until one handler delivers a proper result. This feature is available since magic4j-cdi-utils version 126.96.36.199.
Please see my Chain Of Responsibility-blog with a complete tutorial.
I have provided the jar file via the central maven repository. You can simply add the dependency specified at the end of the above tutorial to your maven project.
Or you can download it directly from the central repository:
- Stephan Bauer