Skip to content

Releases: arthurkowalsky/Java-Message-Bus

2.0.0

22 Mar 15:45
7cf897d

Choose a tag to compare

This release introduces several new features, improvements, and bug fixes to provide a more flexible, efficient, and robust message handling experience.

New Features

  1. Middleware Support: The MessageBus now supports middlewares, enabling you to add custom logic before and/or after the message handling process. This is particularly useful for cross-cutting concerns such as logging, error handling, or performance monitoring.
  2. Allow No Handlers: You can now configure the MessageBus to allow messages without any handlers. This is useful when you want to dispatch events without knowing if any listeners are registered for them.

Improvements

  1. Refactoring: The internal implementation of the MessageBus has been refactored to improve code quality and maintainability. This includes better separation of concerns, improved encapsulation, and adherence to best practices.
  2. Generics: Improved support for generics in message handling. This makes it easier to work with typed messages and handlers in your application.
  3. Better Error Messages: Added custom exception classes.

1.0.0

17 Mar 20:18
7cd05ee

Choose a tag to compare

Version 1.0.0 of the Message Bus Library provides the following features and capabilities:

  1. Message Bus Interface: A simple and easy-to-use interface for the message bus, allowing you to invoke messages and register handlers.
  2. Message Handling: The ability to handle messages without requiring them to implement a specific interface. You can use any Java class as a message.
  3. Annotation-based Handler Registration: Automatic registration of handlers using the @MessageHandler annotation. You only need to annotate the handler class with this annotation and provide an invoke method that takes the message class as a parameter.
  4. Error Handling: Throwing exceptions when invoking a message without a registered handler or when any other issues arise during the handler registration process.
  5. Integration with Spring Boot: Instructions for integrating the Message Bus Library into Spring Boot applications, including the use of dependency injection and a configuration class.
  6. Example Usage: Detailed examples in the README file demonstrate how to create message and handler classes, initialize the message bus, and invoke messages in a typical application.
  7. Maven Package: The library is available as a Maven package, making it easy to include in any Java project.

This version lays the foundation for a simple and lightweight Java message bus library that can be easily integrated into any Java project. It aims to facilitate communication between application components using messages and handlers while maintaining a clean and modular architecture.