Class ArchModules.Creator.WithGenericDescriptor<DESCRIPTOR extends ArchModule.Descriptor>
java.lang.Object
com.tngtech.archunit.library.modules.ArchModules.Creator.WithGenericDescriptor<DESCRIPTOR>
- Enclosing class:
- ArchModules.Creator
@PublicAPI(usage=ACCESS,
state=EXPERIMENTAL)
public static final class ArchModules.Creator.WithGenericDescriptor<DESCRIPTOR extends ArchModule.Descriptor>
extends Object
An element of the fluent API to create
ArchModules-
Method Summary
Modifier and TypeMethodDescriptionmodularize(JavaClasses classes) DerivesArchModulesfrom the passedJavaClassesvia the specified modularization strategy by the fluent API (e.g.
-
Method Details
-
modularize
@PublicAPI(usage=ACCESS, state=EXPERIMENTAL) public ArchModules<DESCRIPTOR> modularize(JavaClasses classes) DerivesArchModulesfrom the passedJavaClassesvia the specified modularization strategy by the fluent API (e.g. by package identifier or by generic mapping function). In particular, the passedJavaClasseswill be partitioned and sorted into matching instances ofArchModule.- Parameters:
classes- The classes to modularize- Returns:
- An instance of
ArchModulescontaining individualArchModules which in turn contain the partitioned classes
-