Package org.hibernate.validator.engine
Interface HibernateValidatorEnhancedBean
Hibernate Validator specific marker interface. Beans implementing this interface
would use corresponding
$$_hibernateValidator_getFieldValue(String)
and $$_hibernateValidator_getGetterValue(String)
methods to retrieve
bean property values instead of using reflection or any other means.
It is important to keep in mind that in case of explicit implementation of this interface
access to all possible constrained getters and fields should be provided, for a class implementing
the interface and all its super classes as well. Otherwise unexpected IllegalArgumentException
could be thrown by the Hibernate Validator engine.
- Since:
- 6.1
- Author:
- Marko Bekhta
-
Field Details
-
GET_FIELD_VALUE_METHOD_NAME
- See Also:
-
GET_GETTER_VALUE_METHOD_NAME
- See Also:
-
-
Method Details
-
$$_hibernateValidator_getFieldValue
- Parameters:
name
- the name of a field property of interest.- Returns:
- the value of the field named
name
of the current bean. - Throws:
IllegalArgumentException
- in case no field could be found for the given name.
-
$$_hibernateValidator_getGetterValue
- Parameters:
name
- the name of a getter of interest.- Returns:
- the value returned by the getter named
name
of the current bean. - Throws:
IllegalArgumentException
- in case when no getter property could be found for the given name.
-