Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

By default constraint validators aren't aware of the infrastructure of an application. Currently this module provides the possibility to use dependency injection in constraint validators.
So it's possible e.g. to inject special validation services, DAOs/repositories,... for delegating tasks or querying information. Furthermore, this module allows to reference the invalid value in violation messages and it is optimized for the usage in combination with MyFaces ExtVal r4+ and the JSF module of CODI. Both optimizations get activated as soon as the corresponding libs are used in the project and don't introduce further dependencies.