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.AnnotationLookup, ApplicationModuleInformation.JMoleculesModule, ApplicationModuleInformation.SpringModulithModule
-
Constructor Summary
ConstructorDescriptionCreates a newApplicationModuleInformation.SpringModulithModule
for the givenApplicationModuleInformation.AnnotationLookup
. -
Method Summary
Modifier and TypeMethodDescriptionReturns all allowed dependencies.Returns the display name to be used to describe the module.boolean
isOpen()
Returns whether the module is considered open.static boolean
Whether the givenApplicationModuleInformation.AnnotationLookup
supports thisApplicationModuleInformation
.
-
Constructor Details
-
SpringModulithModule
Creates a newApplicationModuleInformation.SpringModulithModule
for the givenApplicationModuleInformation.AnnotationLookup
.- Parameters:
lookup
- must not be null.
-
-
Method Details
-
supports
Whether the givenApplicationModuleInformation.AnnotationLookup
supports thisApplicationModuleInformation
.- Parameters:
lookup
- 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.
-
isOpen
public boolean isOpen()Description copied from interface:ApplicationModuleInformation
Returns whether the module is considered open.- Specified by:
isOpen
in interfaceApplicationModuleInformation
- See Also:
-