Open paguerre3 opened 2 months ago
@maciejwalkowiak As a Quick solution I added @NamedInterface in the classes exposed into the Catalog module from Lending module, e.g.:
import org.springframework.modulith.NamedInterface;
@NamedInterface
public record LoanClosed(CopyId copyId) {
}
@maciejwalkowiak Please add me as a collaborator and I can commit the solution if u like or explain a better solution because now i see DO Events from domain of Lending exposed to the aplication Layer of Catalog
Result:
Logical name: lending Base package: library.lending Named interfaces:
- NamedInterface: name=<
>, types=[] - NamedInterface: name=domain, types=[ l.d.CopyId, .l.d.LoanClosed, l.d.LoanCreated ]
@maciejwalkowiak I really enjoyed the Video but where u able to fully test it? Note I like the concepts provided and agree in most of them but checking DomainEventListener located under application or Catalog module fails modulith verification with the Loan Events from Lending module:
Note I logged modules to see further details and I saw no expose, I checked modules dependecies and saw:
Lending
Catalog
So how can we see LoanCreated and Closed (from Lending Module) in the the Catalog module / application : DomainEventListener if Modulith verification fails because they aren't exposed?