Interface ViolationStore
- All Known Implementing Classes:
TextFileBasedViolationStore,ViolationStore.Delegate
Provides some sort of storage for violations to
FreezingArchRule.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA simple delegate for aViolationStoreto allow adjusting the behavior of anotherViolationStoreby delegation (e.g. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetViolations(ArchRule rule) voidinitialize(Properties properties) Provides custom initialization with properties derived from "archunit.properties" by considering the sub properties offreeze.store.voidProvides a way to initially store or later update violations of anArchRule.
-
Method Details
-
initialize
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
- Parameters:
rule- AnArchRule- Returns:
- true, if and only if this
ViolationStorecontains 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
-