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