Explore constraint implementation simplifications via lambdas

Description

David explored the idea of method literal as constraint implementations and how to work around limitations

https://www.youtube.com/watch?v=5wX8RmBHMVY&feature=youtu.be&t=3907

Environment

None

Activity

Show:
Emmanuel Bernard
March 21, 2016, 4:47 PM
Edited

Thanks ,

Nice effort, you are stubborn

A few concerns to continue the discussion in decreasing order:

  • the new method on ConstraintValidator breaks existing implementations so we would need at least a subclass

  • many constraints have parameters and this work can't make use of them

  • the programmatic API makes it harder to find where and what constraint implementations are used. This goes a bit at odds with the general declarative logic of BV

  • we can't return a single CV per annotation, in the spec there can be many; one per actual validated type is the only constraint

  • the down casting in the register method sucks

Assignee

Unassigned

Reporter

Emmanuel Bernard

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Priority

Major
Configure