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, WITH_ANNOTATIONS -
Method Summary
Modifier and TypeMethodDescriptionReturns 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 all base packages of the modulith.Returns the source of the Spring Modulith setup.Returns theApplicationModuleIdentifiers of shared modules, i.e. modules that are supposed to always be included in bootstraps.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 Optional<ModulithMetadata>Creates aModulithMetadatainspectingModulithicannotation or returnOptional.empty()if the type given does not carry the annotation.booleanWhether to use fully-qualified module names, i.e. rather use the fully-qualified package name instead of the local one.
-
Method Details
-
of
Creates aModulithMetadatainspectingModulithicannotation or returnOptional.empty()if the type given does not carry the annotation.- Parameters:
annotated- must not be null.- Returns:
-
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.
-
getBasePackages
Description copied from interface:ModulithMetadataReturns all base packages of the modulith.- Specified by:
getBasePackagesin interfaceModulithMetadata- Returns:
- will never be null.
-