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
ConstructorsConstructorDescriptionSpringModulithModule(JavaPackage javaPackage) Creates a newApplicationModuleInformation.SpringModulithModulefor the givenJavaPackage. -
Method Summary
Modifier and TypeMethodDescriptionReturns all allowed dependencies.Returns the display name to be used to describe the module.static booleansupports(JavaPackage javaPackage) Whether the givenJavaPackagesupports thisApplicationModuleInformation.
-
Constructor Details
-
SpringModulithModule
Creates a newApplicationModuleInformation.SpringModulithModulefor the givenJavaPackage.- Parameters:
javaPackage- must not be null.
-
-
Method Details
-
supports
Whether the givenJavaPackagesupports thisApplicationModuleInformation.- Parameters:
javaPackage- must not be null.
-
getDisplayName
Description copied from interface:ApplicationModuleInformationReturns the display name to be used to describe the module.- Specified by:
getDisplayNamein interfaceApplicationModuleInformation- Returns:
- will never be null.
-
getAllowedDependencies
Description copied from interface:ApplicationModuleInformationReturns all allowed dependencies.- Specified by:
getAllowedDependenciesin interfaceApplicationModuleInformation- Returns:
- will never be null.
-