Interface ModulithMetadata
- All Known Implementing Classes:
AnnotationModulithMetadata
,DefaultModulithMetadata
public interface ModulithMetadata
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the names of the packages that are supposed to be considered modulith base packages, i.e.Deprecated, for removal: This API element is subject to removal in a future version.Returns the name of shared modules, i.e.Returns the source of the Spring Modulith setup.Returns the name of the system.static ModulithMetadata
Creates a newModulithMetadata
for the given annotated type.static ModulithMetadata
Creates a newModulithMetadata
instance for the given package.boolean
Whether to use fully-qualified module names, i.e.
-
Field Details
-
ANNOTATION_MISSING
- See Also:
-
-
Method Details
-
of
Creates a newModulithMetadata
for the given annotated type. Expects the type either be annotated withModulith
,Modulithic
orSpringBootApplication
.- Parameters:
annotated
- must not be null.- Returns:
- Throws:
IllegalArgumentException
- in case none of the above mentioned annotations is present on the given type.
-
of
Creates a newModulithMetadata
instance for the given package.- Parameters:
javaPackage
- must not be null or empty.- Returns:
- will never be null.
-
getModulithSource
Deprecated, for removal: This API element is subject to removal in a future version.usegetSource()
instead.Returns the source of the Spring Modulith setup. Either a type or a package.- Returns:
- will never be null.
-
getSource
Object getSource()Returns the source of the Spring Modulith setup. Either a type or a package.- Returns:
- will never be null.
-
getAdditionalPackages
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.- Returns:
- will never be null.
-
useFullyQualifiedModuleNames
boolean useFullyQualifiedModuleNames()Whether to use fully-qualified module names, i.e. rather use the fully-qualified package name instead of the local one.- Returns:
-
getSystemName
Returns the name of the system.- Returns:
- will never be null.
-
getSource()
instead.