Ask questions and see you at September, 5, 8.PM. CET: youtube.com/c/bienadam
Also checkout recent episode:
Please keep the questions Jakarta EE-stic. Means: as short and as concise as only possible. Feel free to ask several, shorter questions. Upcoming airhacks.tv events are also going to be announced at meetup.com/airhacks
Hi Adam,
I've written some custom javax.validation annotations to automatically produce http 400 Bad Request responses in my jax-rs applications. For example:
Now I'm trying to pack these annotations in a jar and make it available as a dependency, but I can't get my head around the ValidationProvider with Configuration bootstrap mechanism.
Here's my effort: I've included within the jar a file named
javax.validation.spi.ValidationProvider
inMETA-INF/services/
which provides the fully qualified name of an implementation that I made of ValidationProvider, also included in the jar:Using the jar as a dependency I can see the ValidationProvider that gets constructed - through the System.out - but then the validation is not triggered and no exception is raised either.
Can you help?
Thank you so much, love all your Q&A content and your blog!