Package com.tngtech.archunit.library
Class Architectures.LayeredArchitecture.LayerDefinition
java.lang.Object
com.tngtech.archunit.library.Architectures.LayeredArchitecture.LayerDefinition
- Enclosing class:
- Architectures.LayeredArchitecture
-
Method Summary
Modifier and TypeMethodDescriptiondefinedBy
(DescribedPredicate<? super JavaClass> predicate) Defines a layer by a predicate, i.e.Defines a layer by package identifiers (comparePackageMatcher
)toString()
-
Method Details
-
definedBy
@PublicAPI(usage=ACCESS) public Architectures.LayeredArchitecture definedBy(DescribedPredicate<? super JavaClass> predicate) Defines a layer by a predicate, i.e. anyJavaClass
that will match the predicate will belong to this layer.
Note that many predefinedpredicates
can be found within a subclassPredicates
of the respective domain object or a common ancestor. For example,predicates
targetingJavaClass
can be found withinJavaClass.Predicates
or one of the respective ancestors likeHasName.Predicates
. -
definedBy
@PublicAPI(usage=ACCESS) public Architectures.LayeredArchitecture definedBy(String... packageIdentifiers) Defines a layer by package identifiers (comparePackageMatcher
) -
toString
-