Uses of Class
org.springframework.modulith.core.JavaPackage
Package
Description
Core, internal abstractions of Spring Modulith.
-
Uses of JavaPackage in org.springframework.modulith.core
Modifier and TypeMethodDescriptionApplicationModule.getBasePackage()
Returns the module's base package.static JavaPackage
Creates a newJavaPackage
for the given classes and name.JavaPackage.toSingle()
Reduces theJavaPackage
to only its base package.Modifier and TypeMethodDescriptionApplicationModule.getBootstrapBasePackages
(ApplicationModules modules, DependencyDepth depth) Returns allJavaPackage
for the current module including the ones by its dependencies.JavaPackage.getDirectSubPackages()
Returns all direct sub-packages of the current one.ApplicationModuleDetectionStrategy.getModuleBasePackages
(JavaPackage basePackage) Given theJavaPackage
that Moduliths was initialized with, return the base packages for all modules in the system.JavaPackage.getSubPackagesAnnotatedWith
(Class<? extends Annotation> annotation) Returns all sub-packages that carry the given annotation type.Modifier and TypeMethodDescription(package private) static NamedInterfaces
NamedInterfaces.discoverNamedInterfaces
(JavaPackage basePackage) Discovers allNamedInterfaces
declared for the givenJavaPackage
.(package private) static NamedInterfaces
NamedInterfaces.forOpen
(JavaPackage basePackage) Creates a newNamedInterface
consisting of the unnamed one containing all classes in the givenJavaPackage
.ApplicationModuleDetectionStrategy.getModuleBasePackages
(JavaPackage basePackage) Given theJavaPackage
that Moduliths was initialized with, return the base packages for all modules in the system.ApplicationModuleInformation.AnnotationLookup.of
(JavaPackage javaPackage, Predicate<com.tngtech.archunit.core.domain.JavaClass> typeSelector) static ApplicationModuleInformation
ApplicationModuleInformation.of
(JavaPackage javaPackage) Creates a newApplicationModuleInformation
for the givenJavaPackage
.(package private) static List<NamedInterface>
NamedInterface.of
(JavaPackage javaPackage) Returns allNamedInterface
s for the givenJavaPackage
.(package private) static NamedInterfaces
NamedInterfaces.ofAnnotatedPackages
(JavaPackage basePackage) Creates a newNamedInterfaces
for the given baseJavaPackage
.(package private) static NamedInterface
NamedInterface.unnamed
(JavaPackage javaPackage, boolean flatten) Creates an unnamedNamedInterface
for the givenJavaPackage
.ModifierConstructorDescription(package private)
ApplicationModule
(JavaPackage basePackage, boolean useFullyQualifiedModuleNames) Creates a newApplicationModule
for the given base package and whether to use fully-qualified module names.