Interface ViolationStore
-
@PublicAPI(usage=INHERITANCE) public interface ViolationStore
Provides some sort of storage for violations toFreezingArchRule.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontains(ArchRule rule)java.util.List<java.lang.String>getViolations(ArchRule rule)voidinitialize(java.util.Properties properties)Provides custom initialization with properties derived from "archunit.properties" by considering the sub properties offreeze.store.voidsave(ArchRule rule, java.util.List<java.lang.String> violations)Provides a way to initially store or later update violations of anArchRule.
-
-
-
Method Detail
-
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=valueTwopropOne=valueOne propTwo=valueTwo- Parameters:
properties- The properties derived from the "archunit.properties" prefixfreeze.store.
-
contains
boolean contains(ArchRule rule)
- Parameters:
rule- AnArchRule- Returns:
- true, if and only if this
ViolationStorecontains stored violations for the passedArchRule
-
save
void save(ArchRule rule, java.util.List<java.lang.String> violations)
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.
-
-