Application Service Domain Module¶
Defined Primary Adapters¶
Allows the isolated domain to communicate with an outside. Orchestrate transaction, security, looking up proper aggregates and saving state changes of the domain to the database. It does not common any business logic.
Domain event listeners are special kind of Application services that are triggered by domain events. Each domain event listener can have a separate domain service to handle business logic.
Part I.
- DTOs
- Mappers
- Exceptions
- Ports
- Input
- Listeners
- Domain Service
- Output
- Publishers
- Repositories
- Input
Part II
- Implementing input ports
Why use Lombok?¶
Lombok is a Java library that helps to reduce boilerplate code in Java classes, such as constructors, getters, and setters. While it can be useful, some developers prefer not to use it due to concerns about code readability and maintainability.
Why ?¶
YES: In others modules: e.g.: like in the Infrastructure module will use lombok to prevent Boilerplate Java codes.
Dependencies¶
Unit Test to Use Case¶
If you need to create tests (only unit test for this module), you can add the following dependency:
pom.xml | |
---|---|