Class ApplicationModuleInformation.SpringModulithModule
java.lang.Object
org.springframework.modulith.core.ApplicationModuleInformation.SpringModulithModule
- All Implemented Interfaces:
ApplicationModuleInformation
- Enclosing interface:
- ApplicationModuleInformation
public static class ApplicationModuleInformation.SpringModulithModule
extends Object
implements ApplicationModuleInformation
An
ApplicationModuleInformation
that inspects the ApplicationModule
annotation.- Author:
- Oliver Drotbohm
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.modulith.core.ApplicationModuleInformation
ApplicationModuleInformation.JMoleculesModule, ApplicationModuleInformation.SpringModulithModule
-
Constructor Summary
ConstructorDescriptionSpringModulithModule
(JavaPackage javaPackage) Creates a newApplicationModuleInformation.SpringModulithModule
for the givenJavaPackage
. -
Method Summary
Modifier and TypeMethodDescriptionReturns all allowed dependencies.Returns the display name to be used to describe the module.static boolean
supports
(JavaPackage javaPackage) Whether the givenJavaPackage
supports thisApplicationModuleInformation
.
-
Constructor Details
-
SpringModulithModule
Creates a newApplicationModuleInformation.SpringModulithModule
for the givenJavaPackage
.- Parameters:
javaPackage
- must not be null.
-
-
Method Details
-
supports
Whether the givenJavaPackage
supports thisApplicationModuleInformation
.- Parameters:
javaPackage
- must not be null.
-
getDisplayName
Description copied from interface:ApplicationModuleInformation
Returns the display name to be used to describe the module.- Specified by:
getDisplayName
in interfaceApplicationModuleInformation
- Returns:
- will never be null.
-
getDeclaredDependencies
Description copied from interface:ApplicationModuleInformation
Returns all allowed dependencies.- Specified by:
getDeclaredDependencies
in interfaceApplicationModuleInformation
- Returns:
- will never be null.
-