Skip to content

Files

Latest commit

Dec 1, 2020
271fd4b · Dec 1, 2020

History

History

time-duration-validator-example

Java time Duration Validator Example

This is a demo project used in the examples for the blog post Adding custom constraint definitions via the Java service loader. It contains a constraint annotation @DurationMin and corresponding validator for java.time.Duration.

Building the project

Execute the following command to build the project:

mvn clean install

This will execute some simple JUnit tests and package a jar file with constraint validators implemented in this demo project.