Interface DescriptorFunction<DESCRIPTOR extends ArchModule.Descriptor>
- Type Parameters:
DESCRIPTOR- The type of theArchModule.Descriptorthe respectiveArchModules will have
- All Superinterfaces:
HasDescription
@PublicAPI(usage=INHERITANCE)
public interface DescriptorFunction<DESCRIPTOR extends ArchModule.Descriptor>
extends HasDescription
Serves the same purpose as
ArchModules.DescriptorCreator, but carries along a description
to be used by rule syntax elements.-
Method Summary
Modifier and TypeMethodDescriptionapply(ArchModule.Identifier identifier, Set<JavaClass> containedClasses) static <D extends ArchModule.Descriptor>
DescriptorFunction<D>describe(String description, ArchModules.DescriptorCreator<D> descriptorCreator) Convenience method to create aDescriptorFunctionfrom aArchModules.DescriptorCreatorand a textualdescription.Methods inherited from interface com.tngtech.archunit.base.HasDescription
getDescription
-
Method Details
-
apply
-
describe
@PublicAPI(usage=ACCESS, state=EXPERIMENTAL) static <D extends ArchModule.Descriptor> DescriptorFunction<D> describe(String description, ArchModules.DescriptorCreator<D> descriptorCreator) Convenience method to create aDescriptorFunctionfrom aArchModules.DescriptorCreatorand a textualdescription.
-