Class ArchModules.CreatorByRootClass
java.lang.Object
com.tngtech.archunit.library.modules.ArchModules.Creator
com.tngtech.archunit.library.modules.ArchModules.CreatorByRootClass
- Enclosing class:
- ArchModules<DESCRIPTOR extends ArchModule.Descriptor>
@PublicAPI(usage=ACCESS,
state=EXPERIMENTAL)
public static class ArchModules.CreatorByRootClass
extends ArchModules.Creator
An element of the fluent API to create
ArchModules-
Nested Class Summary
Nested classes/interfaces inherited from class com.tngtech.archunit.library.modules.ArchModules.Creator
ArchModules.Creator.WithGenericDescriptor<DESCRIPTOR extends ArchModule.Descriptor> -
Method Summary
Modifier and TypeMethodDescriptiondescribeModuleByRootClass(ArchModules.RootClassDescriptorCreator<D> descriptorCreator) Allows to derive theArchModule.Descriptorfrom theroot classthat induced the respectiveArchModule.Methods inherited from class com.tngtech.archunit.library.modules.ArchModules.Creator
deriveNameFromPattern, describeBy, modularize
-
Method Details
-
describeModuleByRootClass
@PublicAPI(usage=ACCESS, state=EXPERIMENTAL) public <D extends ArchModule.Descriptor> ArchModules.Creator.WithGenericDescriptor<D> describeModuleByRootClass(ArchModules.RootClassDescriptorCreator<D> descriptorCreator) Allows to derive theArchModule.Descriptorfrom theroot classthat induced the respectiveArchModule.- Type Parameters:
D- The specific subtype ofArchModule.Descriptor- Parameters:
descriptorCreator- A function describing how to derive theArchModule.Descriptorfrom the respectiveArchModule.Identifierandroot class- Returns:
- A fluent API to further customize how to create
ArchModules
-