Skip to content

Commit b932faf

Browse files
committed
GH-1152 - ApplicationModules now exposes root packages.
1 parent 4cce462 commit b932faf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

spring-modulith-core/src/main/java/org/springframework/modulith/core/ApplicationModules.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,16 @@ public Object getSource() {
301301
return metadata.getSource();
302302
}
303303

304+
/**
305+
* Returns all root packages.
306+
*
307+
* @return will never be {@literal null}.
308+
* @since 1.4
309+
*/
310+
public List<JavaPackage> getRootPackages() {
311+
return Collections.unmodifiableList(rootPackages);
312+
}
313+
304314
/**
305315
* Returns all {@link ApplicationModule}s registered as shared ones.
306316
*

0 commit comments

Comments
 (0)