Class ApplicationModuleInformationFactory.SpringModulithModule
java.lang.Object
org.springframework.modulith.core.ApplicationModuleInformationFactory.SpringModulithModule
- All Implemented Interfaces:
ApplicationModuleInformation
- Enclosing class:
- ApplicationModuleInformationFactory
static class ApplicationModuleInformationFactory.SpringModulithModule
extends Object
implements ApplicationModuleInformation
An
ApplicationModuleInformation that inspects the ApplicationModule annotation.- Author:
- Oliver Drotbohm
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newApplicationModuleInformationFactory.SpringModulithModulefor the givenApplicationModuleInformationFactory.AnnotationLookup. -
Method Summary
Modifier and TypeMethodDescriptionReturns all allowed dependencies.Returns the display name to be used to describe the module.booleanisOpen()Returns whether the module is considered open.static booleanWhether the givenApplicationModuleInformationFactory.AnnotationLookupsupports thisApplicationModuleInformation.
-
Constructor Details
-
SpringModulithModule
Creates a newApplicationModuleInformationFactory.SpringModulithModulefor the givenApplicationModuleInformationFactory.AnnotationLookup.- Parameters:
lookup- must not be null.
-
-
Method Details
-
supports
Whether the givenApplicationModuleInformationFactory.AnnotationLookupsupports thisApplicationModuleInformation.- Parameters:
lookup- 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.
-
getDeclaredDependencies
Description copied from interface:ApplicationModuleInformationReturns all allowed dependencies.- Specified by:
getDeclaredDependenciesin interfaceApplicationModuleInformation- Returns:
- will never be null.
-
isOpen
public boolean isOpen()Description copied from interface:ApplicationModuleInformationReturns whether the module is considered open.- Specified by:
isOpenin interfaceApplicationModuleInformation- See Also:
-