Class ApplicationModuleDetectionStrategyLookup
java.lang.Object
org.springframework.modulith.core.ApplicationModuleDetectionStrategyLookup
A factory for the
ApplicationModuleDetectionStrategy to be used when scanning code for
ApplicationModules.- Author:
- Oliver Drotbohm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static ApplicationModuleDetectionStrategyReturns theApplicationModuleDetectionStrategyto be used to detectApplicationModules.
-
Constructor Details
-
ApplicationModuleDetectionStrategyLookup
ApplicationModuleDetectionStrategyLookup()
-
-
Method Details
-
getStrategy
Returns theApplicationModuleDetectionStrategyto be used to detectApplicationModules. Will use the following algorithm:- Use the prepared strategies if either
direct-sub-packagesorexplicitly-annotatedis configured for thespring.modulith.detection-strategyconfiguration property. - Interpret the configured value as class if it doesn't match the predefined values just described.
- Use the
ApplicationModuleDetectionStrategydeclared inMETA-INF/spring.properties(deprecated) - A final fallback on the
direct-sub-packages.
- Returns:
- will never be null.
- Use the prepared strategies if either
-