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 SummaryFields inherited from interface org.springframework.modulith.core.ModulithMetadataANNOTATION_MISSING
- 
Method SummaryModifier 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 aModulithMetadatainspectingModulithicannotation or returnOptional.empty()if the type given does not carry the annotation.booleanWhether to use fully-qualified module names, i.e.
- 
Method Details- 
ofCreates aModulithMetadatainspectingModulithicannotation or returnOptional.empty()if the type given does not carry the annotation.- Parameters:
- annotated- must not be null.
- Returns:
 
- 
getModulithSourceDescription copied from interface:ModulithMetadataReturns the source of the Spring Modulith setup. Either a type or a package.- Specified by:
- getModulithSourcein interface- ModulithMetadata
- Returns:
- will never be null.
 
- 
getSourceDescription copied from interface:ModulithMetadataReturns the source of the Spring Modulith setup. Either a type or a package.- Specified by:
- getSourcein interface- ModulithMetadata
- Returns:
- will never be null.
 
- 
getAdditionalPackagesDescription 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 interface- ModulithMetadata
- Returns:
- will never be null.
 
- 
useFullyQualifiedModuleNamespublic 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 interface- ModulithMetadata
- Returns:
 
- 
getSystemNameDescription copied from interface:ModulithMetadataReturns the name of the system.- Specified by:
- getSystemNamein interface- ModulithMetadata
- Returns:
- will never be null.
 
 
-