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 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 newModulithMetadatarepresenting the defaults of a class annotated withSpringBootApplicationbut not customized withModulithicorModulith.static ModulithMetadataCreates a newModulithMetadatafrom the given package name.booleanWhether to use fully-qualified module names, i.e.
-
Method Details
-
of
Creates a newModulithMetadatarepresenting the defaults of a class annotated withSpringBootApplicationbut not customized withModulithicorModulith.- Parameters:
annotated- must not be null.- Returns:
- will never be null.
-
of
Creates a newModulithMetadatafrom the given package name.- Parameters:
javaPackage- must not be null or empty.- Returns:
- will never be null.
-
getModulithSource
Description copied from interface:ModulithMetadataReturns the source of the Spring Modulith setup. Either a type or a package.- Specified by:
getModulithSourcein interfaceModulithMetadata- Returns:
- will never be null.
-
getSource
Description copied from interface:ModulithMetadataReturns the source of the Spring Modulith setup. Either a type or a package.- Specified by:
getSourcein interfaceModulithMetadata- Returns:
- will never be null.
-
getAdditionalPackages
Description copied from interface:ModulithMetadataReturns 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:
getAdditionalPackagesin interfaceModulithMetadata- Returns:
- will never be null.
-
useFullyQualifiedModuleNames
public boolean useFullyQualifiedModuleNames()Description copied from interface:ModulithMetadataWhether to use fully-qualified module names, i.e. rather use the fully-qualified package name instead of the local one.- Specified by:
useFullyQualifiedModuleNamesin interfaceModulithMetadata- Returns:
-
getSystemName
Description copied from interface:ModulithMetadataReturns the name of the system.- Specified by:
getSystemNamein interfaceModulithMetadata- Returns:
- will never be null.
-