| Yes, the idea would be to add an extension point to Hibernate Validator – i.e. not the spec for the time being – which allows to customize the retrieval of property accessors. As a starting point check out PropertyMetadata.Builder#accepts() and how it uses ConstrainedExecutable#isGetterMethod() to select only JavaBeans property getters. The logic of the latter would have to be extracted into an SPI, with the current implementation being the default behavior and a way to plug in other implementations via HibernateValidatorConfiguration. |