GH-846 - Fix module identifier lookup for jMolecules @Module(id = …).

We now properly translate jMolecules' @Module declaration configuring the id attribute explicitly into the identifier used for an application module.

Introduce @ApplicationModule(id = …) for Spring Modulith-native identifier customization.
This commit is contained in:
Oliver Drotbohm
2024-10-13 16:33:37 +02:00
parent de4668319c
commit 413e2f50b6
9 changed files with 233 additions and 36 deletions

View File

@@ -32,6 +32,13 @@ public @interface ApplicationModule {
public static final String OPEN_TOKEN = "¯\\_(ツ)_/¯";
/**
* The identifier of the module. Must not contain a double colon ({@code ::}).
*
* @return will never be {@literal null}.
*/
String id() default "";
/**
* The human readable name of the module to be used for display and documentation purposes.
*