Class ApplicationModuleSourceContributions
java.lang.Object
org.springframework.modulith.core.ApplicationModuleSourceContributions
Lookup of external
ApplicationModuleSource
contributions via ApplicationModuleSourceFactory
implementations.- Since:
- 1.3
- Author:
- Oliver Drotbohm
-
Field Summary
-
Constructor Summary
ConstructorDescriptionApplicationModuleSourceContributions
(List<? extends ApplicationModuleSourceFactory> factories, Function<Collection<String>, com.tngtech.archunit.core.domain.JavaClasses> importer, ApplicationModuleDetectionStrategy defaultStrategy, boolean useFullyQualifiedModuleNames) Creates a newApplicationModuleSourceContributions
for the givenApplicationModuleSourceFactory
s, importer function, defaultApplicationModuleDetectionStrategy
and whether to use fully-qualified module names. -
Method Summary
Modifier and TypeMethodDescriptionof
(Function<Collection<String>, com.tngtech.archunit.core.domain.JavaClasses> importer, ApplicationModuleDetectionStrategy defaultStrategy, boolean useFullyQualifiedModuleNames) Creates a newApplicationModuleSourceContributions
for the given importer function, defaultApplicationModuleDetectionStrategy
and whether to use fully-qualified module names.
-
Field Details
-
LOCATION
-
-
Constructor Details
-
ApplicationModuleSourceContributions
ApplicationModuleSourceContributions(List<? extends ApplicationModuleSourceFactory> factories, Function<Collection<String>, com.tngtech.archunit.core.domain.JavaClasses> importer, ApplicationModuleDetectionStrategy defaultStrategy, boolean useFullyQualifiedModuleNames) Creates a newApplicationModuleSourceContributions
for the givenApplicationModuleSourceFactory
s, importer function, defaultApplicationModuleDetectionStrategy
and whether to use fully-qualified module names.- Parameters:
factories
- must not be null.importer
- must not be null.defaultStrategy
- must not be null.useFullyQualifiedModuleNames
- whether to use fully-qualified module names.
-
-
Method Details
-
of
public static ApplicationModuleSourceContributions of(Function<Collection<String>, com.tngtech.archunit.core.domain.JavaClasses> importer, ApplicationModuleDetectionStrategy defaultStrategy, boolean useFullyQualifiedModuleNames) Creates a newApplicationModuleSourceContributions
for the given importer function, defaultApplicationModuleDetectionStrategy
and whether to use fully-qualified module names.- Parameters:
importer
- must not be null.defaultStrategy
- must not be null.useFullyQualifiedModuleNames
- whether to use fully-qualified module names.
-
getRootPackages
- Returns:
- will never be null.
-
getSources
- Returns:
- will never be null.
-