Class SpringBootModulithMetadata
java.lang.Object
org.springframework.modulith.core.SpringBootModulithMetadata
- All Implemented Interfaces:
ModulithMetadata
Creates a new
ModulithMetadata
representing the defaults of Modulithic
but without the annotation present.- Author:
- Oliver Drotbohm
-
Field Summary
Fields inherited from interface org.springframework.modulith.core.ModulithMetadata
ANNOTATION_MISSING
-
Method Summary
Modifier and TypeMethodDescriptionReturns the names of the packages that are supposed to be considered modulith base packages, i.e.Returns all base packages of the modulith.Returns the source of the Spring Modulith setup.Returns the name of shared modules, i.e.Returns the source of the Spring Modulith setup.Returns the name of the system.static Optional<ModulithMetadata>
Creates a newModulithMetadata
representing the defaults of a class annotated withSpringBootApplication
but not customized withModulithic
orModulith
.static ModulithMetadata
Creates a newModulithMetadata
from the given package name.boolean
Whether to use fully-qualified module names, i.e.
-
Method Details
-
of
Creates a newModulithMetadata
representing the defaults of a class annotated withSpringBootApplication
but not customized withModulithic
orModulith
.- Parameters:
annotated
- must not be null.- Returns:
- will never be null.
-
of
Creates a newModulithMetadata
from the given package name.- Parameters:
javaPackage
- must not be null or empty.- Returns:
- will never be null.
-
getModulithSource
Description copied from interface:ModulithMetadata
Returns the source of the Spring Modulith setup. Either a type or a package.- Specified by:
getModulithSource
in interfaceModulithMetadata
- Returns:
- will never be null.
-
getSource
Description copied from interface:ModulithMetadata
Returns the source of the Spring Modulith setup. Either a type or a package.- Specified by:
getSource
in interfaceModulithMetadata
- Returns:
- will never be null.
-
getAdditionalPackages
Description copied from interface:ModulithMetadata
Returns the names of the packages that are supposed to be considered modulith base packages, i.e. for which to consider all direct sub-packages modules by default.- Specified by:
getAdditionalPackages
in interfaceModulithMetadata
- Returns:
- will never be null.
-
useFullyQualifiedModuleNames
public boolean useFullyQualifiedModuleNames()Description copied from interface:ModulithMetadata
Whether to use fully-qualified module names, i.e. rather use the fully-qualified package name instead of the local one.- Specified by:
useFullyQualifiedModuleNames
in interfaceModulithMetadata
- Returns:
-
getSystemName
Description copied from interface:ModulithMetadata
Returns the name of the system.- Specified by:
getSystemName
in interfaceModulithMetadata
- Returns:
- will never be null.
-
getBasePackages
Description copied from interface:ModulithMetadata
Returns all base packages of the modulith.- Specified by:
getBasePackages
in interfaceModulithMetadata
- Returns:
- will never be null.
-