Skip to content

Commit 10f8716

Browse files
committed
GH-1150 - ApplicationModule now exposes internal types.
1 parent fd3542b commit 10f8716

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,19 @@ Classes getClasses() {
781781
return classes;
782782
}
783783

784+
/**
785+
* Returns all types internal to the module.
786+
*
787+
* @return will never be {@literal null}.
788+
* @since 1.4
789+
*/
790+
public Collection<JavaClass> getInternalTypes() {
791+
792+
return classes.stream()
793+
.filter(Predicate.not(this::isExposed))
794+
.toList();
795+
}
796+
784797
private String getQualifiedName(NamedInterface namedInterface) {
785798
return namedInterface.getQualifiedName(getIdentifier());
786799
}

0 commit comments

Comments
 (0)