Interface ApplicationModuleDetectionStrategy
- All Known Implementing Classes:
ApplicationModuleDetectionStrategies
public interface ApplicationModuleDetectionStrategy
Strategy interface to customize which packages are considered module base packages.
- Author:
- Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescriptionAApplicationModuleDetectionStrategy
that considers all direct sub-packages of the Moduliths base package to be module base packages.AApplicationModuleDetectionStrategy
that considers packages explicitly annotated withApplicationModule
module base packages.getModuleBasePackages
(JavaPackage basePackage) Given theJavaPackage
that Moduliths was initialized with, return the base packages for all modules in the system.
-
Method Details
-
getModuleBasePackages
Given theJavaPackage
that Moduliths was initialized with, return the base packages for all modules in the system.- Parameters:
basePackage
- will never be null.- Returns:
- must not be null.
-
directSubPackage
AApplicationModuleDetectionStrategy
that considers all direct sub-packages of the Moduliths base package to be module base packages.- Returns:
- will never be null.
-
explictlyAnnotated
AApplicationModuleDetectionStrategy
that considers packages explicitly annotated withApplicationModule
module base packages.- Returns:
- will never be null.
-