|
|
|
|
|
|
I am not able to make Hibernate Validator to automatically validate my methods, so I am looking the documentation. Reading the documentation, I find contradicting information: {quote} Note that declaring method or constructor constraints itself does not automatically cause their validation upon invocation of the executable. Instead, the ExecutableValidator API (see Section 3.2, “Validating method constraints”) must be used to perform the validation, which is often done using a method interception facility such as AOP, proxy objects etc. {quote} source: http://docs.jboss.org/hibernate/validator/5.1/reference/en-US/html_single/#d0e1742
And: {quote} Note that no explicit interceptor binding is required, instead the required method validation interceptor will automatically be registered for all managed beans with constrained methods and constructors. {quote} source: http://docs.jboss.org/hibernate/validator/5.1/reference/en-US/html_single/#d0e5382
This information of the documentation is not really clear: do I need an extra interceptor to trigger the method validation?
|
|
|
|
|
|