Interface ApplicationModuleDetectionStrategy
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.Deprecated, for removal: This API element is subject to removal in a future version.since 1.3.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
Deprecated, for removal: This API element is subject to removal in a future version.since 1.3. UseexplicitlyAnnotated()instead.AApplicationModuleDetectionStrategythat considers packages explicitly annotated withApplicationModulemodule base packages.- Returns:
- will never be null.
-
explicitlyAnnotated
AApplicationModuleDetectionStrategythat considers packages explicitly annotated withApplicationModulemodule base packages.- Returns:
- will never be null.
-