Uses of Class
org.springframework.modulith.core.JavaPackage
Packages that use JavaPackage
Package
Description
Core, internal abstractions of Spring Modulith.
-
Uses of JavaPackage in org.springframework.modulith.core
Methods in org.springframework.modulith.core that return JavaPackageModifier 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.Methods in org.springframework.modulith.core that return types with arguments of type JavaPackageModifier 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.Methods in org.springframework.modulith.core with parameters of type JavaPackageModifier and TypeMethodDescription(package private) static NamedInterfaces
NamedInterfaces.discoverNamedInterfaces
(JavaPackage basePackage) Discovers allNamedInterfaces
declared for the givenJavaPackage
.ApplicationModuleDetectionStrategy.getModuleBasePackages
(JavaPackage basePackage) Given theJavaPackage
that Moduliths was initialized with, return the base packages for all modules in the system.static ApplicationModuleInformation
ApplicationModuleInformation.of
(JavaPackage javaPackage) Creates a newApplicationModuleInformation
for the givenJavaPackage
.NamedInterface.of
(String name, Classes classes, JavaPackage basePackage) static List<NamedInterface>
NamedInterface.of
(JavaPackage javaPackage) Returns allNamedInterface.PackageBasedNamedInterface
s for the givenJavaPackage
.(package private) static NamedInterfaces
NamedInterfaces.ofAnnotatedPackages
(JavaPackage basePackage) Creates a newNamedInterfaces
for the given baseJavaPackage
.static boolean
ApplicationModuleInformation.JMoleculesModule.supports
(JavaPackage javaPackage) static boolean
ApplicationModuleInformation.SpringModulithModule.supports
(JavaPackage javaPackage) Whether the givenJavaPackage
supports thisApplicationModuleInformation
.(package private) static NamedInterface
NamedInterface.unnamed
(JavaPackage javaPackage) Creates an unnamedNamedInterface
for the givenJavaPackage
.Constructors in org.springframework.modulith.core with parameters of type JavaPackageModifierConstructorDescription(package private)
ApplicationModule
(JavaPackage basePackage, boolean useFullyQualifiedModuleNames) Creates a newApplicationModule
for the given base package and whether to use fully-qualified module names.JMoleculesModule
(JavaPackage javaPackage) SpringModulithModule
(JavaPackage javaPackage) Creates a newApplicationModuleInformation.SpringModulithModule
for the givenJavaPackage
.TypeBasedNamedInterface
(String name, Classes types, JavaPackage pkg)