spring-modulith icon indicating copy to clipboard operation
spring-modulith copied to clipboard

not using names provided by jmolecules @Module

Open xenoterracide opened this issue 1 year ago • 0 comments
trafficstars

log output

> Logical name: model
> Base package: com.xenoterracide.security.model
> Spring beans:
  o ….controller.RegistrationCtrlr
  o ….user.UserRepository
	at com.xenoterracide.test/com.xenoterracide.test.ApplicationTest.lambda$modulith$0(ApplicationTest.java:26)

my package definition

/**
 * Contains Domain Model classes for security.
 */
@DomainLayer
@BoundedContext(name = "Security")
@Module(name = "Security", id = "security")
package com.xenoterracide.security.model;

import org.jmolecules.architecture.layered.DomainLayer;
import org.jmolecules.ddd.annotation.BoundedContext;
import org.jmolecules.ddd.annotation.Module;

obviously the logical name model isn't going to work. I would think given this output/definition that the logical name would have become security using the id on @Module

If the name/id in @Module isn't supposed to work, is there a way that does? I don't see it in https://docs.spring.io/spring-modulith/reference/fundamentals.html

xenoterracide avatar Sep 24 '24 18:09 xenoterracide