Interface ModulithMetadata
- All Known Implementing Classes:
AnnotationModulithMetadata
,SpringBootModulithMetadata
public interface ModulithMetadata
Core metadata about the modulithic application.
- Author:
- Oliver Drotbohm
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns all base packages of the modulith.Deprecated, for removal: This API element is subject to removal in a future version.usegetSource()
instead.Returns the name of shared modules, i.e. modules that are supposed to always be included in bootstraps.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. rather use the fully-qualified package name instead of the local one.
-
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
Deprecated.since 1.2, rather usegetBasePackages()
that includes all packages already.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.
-
getBasePackages
Returns all base packages of the modulith.- Returns:
- will never be null.
- Since:
- 1.2
-
getBasePackages()
that includes all packages already.