Alexandre DuBreuil is a french Canadian software developer living in France working as a Java Architect at LesFurets.com. He likes to code, talk about code in meetups, user groups and conferences.
Fluent, stream-like API are great for writing type checked code, taking advantage of Java 8 functions and lambdas.
But what about creating your own fluent API to manipulate and validate your model?
We created an open-source framework called dOOv, for "Domain Object Oriented Validation" (http://doov.io), that generates a validation DSL from a domain model.
This presentation will demonstrate the efficiency and expressiveness of dOOv to define validation constraints.
The validation rules are represented as an abstract syntax tree, which makes it possible to visit the tree and show the rule in text format, markdown, or HTML.
We will compare our solution to industry standards like Bean Validation. During the session, we will live code legacy business rule migration to dOOv.