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