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 TypeMethodDescriptionAApplicationModuleDetectionStrategythat considers all direct sub-packages of the Moduliths base package to be module base packages.AApplicationModuleDetectionStrategythat considers packages explicitly annotated withApplicationModulemodule base packages.getModuleBasePackages(JavaPackage basePackage) Given theJavaPackagethat Moduliths was initialized with, return the base packages for all modules in the system.
-
Method Details
-
getModuleBasePackages
Given theJavaPackagethat 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
AApplicationModuleDetectionStrategythat considers all direct sub-packages of the Moduliths base package to be module base packages.- Returns:
- will never be null.
-
explictlyAnnotated
AApplicationModuleDetectionStrategythat considers packages explicitly annotated withApplicationModulemodule base packages.- Returns:
- will never be null.
-