@Incubating public interface HibernateValidatorEnhancedBean
$$_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.
Modifier and Type | Field and Description |
---|---|
static String |
GET_FIELD_VALUE_METHOD_NAME |
static String |
GET_GETTER_VALUE_METHOD_NAME |
Modifier and Type | Method and Description |
---|---|
Object |
$$_hibernateValidator_getFieldValue(String name) |
Object |
$$_hibernateValidator_getGetterValue(String name) |
static final String GET_FIELD_VALUE_METHOD_NAME
static final String GET_GETTER_VALUE_METHOD_NAME
Object $$_hibernateValidator_getFieldValue(String name)
name
- the name of a field property of interest.name
of the current bean.IllegalArgumentException
- in case no field could be found for the given name.Object $$_hibernateValidator_getGetterValue(String name)
name
- the name of a getter of interest.name
of the current bean.IllegalArgumentException
- in case when no getter property could be found for the given name.Copyright © 2007-2020 Red Hat, Inc. All Rights Reserved