Class AnnotationModulithMetadata
java.lang.Object
org.springframework.modulith.core.AnnotationModulithMetadata
- All Implemented Interfaces:
ModulithMetadata
ModulithMetadata
backed by a Modulithic
annotated type.- 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 aModulithMetadata
inspectingModulithic
annotation or returnOptional.empty()
if the type given does not carry the annotation.boolean
Whether to use fully-qualified module names, i.e.
-
Method Details
-
of
Creates aModulithMetadata
inspectingModulithic
annotation or returnOptional.empty()
if the type given does not carry the annotation.- Parameters:
annotated
- must not be null.- Returns:
-
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.
-