Property Validation Modes
Property Validation can be used in two ways. Configure property validation for your prefered validation method by setting the ValidationAspects.ValidationSettings.StateValidateProperties
boolean properties. By default, ValidationAspects performs both State and Interception Validation.
- Interception Validation: When this mode is set, property setters are intercepted and the setting value is validated. Failed validation will result in a ValidationException being thrown.
- StateValidation: When this mode is set, property validators will be invoked when object validation is invoked. Failed validation exceptions will be added to the ValidationResult.