Skip to content

2.0.0

Compare
Choose a tag to compare
@xvik xvik released this 24 Dec 13:34
· 156 commits to master since this release
  • Update to guice 4.2.2
  • (breaking) Minimum requirement is java 8
  • Update to validation api 2.0 (changes comparing to 1.1)
  • (breaking) Implicit/explicit modules merged into one configurable module: ValidationModule.
    • To enable explicit mode: new ValidationModule().validateAnnotatedOnly()
      or with custom annotation: new ValidationModule().validateAnnotatedOnly(ToValidate.class)
    • To avoid adding default group (previously alwaysAddDefaultGroup): new ValidationModule().strictGroupsDeclaration()
    • .withMatcher previously available only in implicit mode now works in both modes:
      new ValidationModule().targetClasses(...)
  • Add ability to filter target methods (in both modes): new ValidationModule().targetMethods(...)
    By default, synthetic and bridge methods are filtered

Migration:

Old New
new ValidationModule() new ValidationModule().validateAnnotatedOnly()
new ImplicitValidationModule new ValidationModule()
.withMatcher(...) .targetClasses(...)
.alwaysAddDefaultGroup(false) strictGroupsDeclaration()