Interface ViolationStore
@PublicAPI(usage=INHERITANCE) public interface ViolationStore
Provides some sort of storage for violations to
FreezingArchRule
.-
Method Summary
Modifier and Type Method Description boolean
contains(ArchRule rule)
java.util.List<java.lang.String>
getViolations(ArchRule rule)
void
initialize(java.util.Properties properties)
Provides custom initialization with properties derived from "archunit.properties" by considering the sub properties offreeze.store
.void
save(ArchRule rule, java.util.List<java.lang.String> violations)
Provides a way to initially store or later update violations of anArchRule
.
-
Method Details
-
initialize
void initialize(java.util.Properties properties)Provides custom initialization with properties derived from "archunit.properties" by considering the sub properties offreeze.store
.
If "archunit.properties" contains, e.g.,
then this method will be called with properties containingfreeze.store.propOne=valueOne freeze.store.propTwo=valueTwo
propOne=valueOne propTwo=valueTwo
- Parameters:
properties
- The properties derived from the "archunit.properties" prefixfreeze.store
.
-
contains
- Parameters:
rule
- AnArchRule
- Returns:
- true, if and only if this
ViolationStore
contains stored violations for the passedArchRule
-
save
Provides a way to initially store or later update violations of anArchRule
. If there are violations currently stored for the passed rule, those violations will be completely overwritten. -
getViolations
-