Class TransitiveDependencyCondition
java.lang.Object
com.tngtech.archunit.lang.ArchCondition<JavaClass>
com.tngtech.archunit.lang.conditions.TransitiveDependencyCondition
@PublicAPI(usage=ACCESS)
public final class TransitiveDependencyCondition
extends ArchCondition<JavaClass>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.tngtech.archunit.lang.ArchCondition
ArchCondition.ConditionByPredicate<T extends HasDescription & HasSourceCodeLocation>
-
Constructor Summary
ConstructorDescriptionTransitiveDependencyCondition
(DescribedPredicate<? super JavaClass> conditionPredicate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
check
(JavaClass javaClass, ConditionEvents events) void
init
(Collection<JavaClass> allObjectsToTest) Can be used/overridden to prepare this condition with respect to the collection of all objects the condition will be tested against.
ArchUnit will call this method once in the beginning, before starting to check single items.Methods inherited from class com.tngtech.archunit.lang.ArchCondition
and, as, finish, forSubtype, from, getDescription, or, toString
-
Constructor Details
-
TransitiveDependencyCondition
-
-
Method Details
-
init
Description copied from class:ArchCondition
Can be used/overridden to prepare this condition with respect to the collection of all objects the condition will be tested against.
ArchUnit will call this method once in the beginning, before starting to check single items.- Overrides:
init
in classArchCondition<JavaClass>
- Parameters:
allObjectsToTest
- All objects thatArchCondition.check(Object, ConditionEvents)
will be called against
-
check
- Specified by:
check
in classArchCondition<JavaClass>
-