public interface ParameterNameProvider
Used by the Jakarta Bean Validation runtime when creating constraint violation objects for violated method constraints.
Implementations must be thread-safe.
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getParameterNames(java.lang.reflect.Constructor<?> constructor)
Returns the names of the parameters of the given constructor.
|
java.util.List<java.lang.String> |
getParameterNames(java.lang.reflect.Method method)
Returns the names of the parameters of the given method.
|
java.util.List<java.lang.String> getParameterNames(java.lang.reflect.Constructor<?> constructor)
constructor
- the constructor for which the parameter names shall be
retrieved; never null
null
java.util.List<java.lang.String> getParameterNames(java.lang.reflect.Method method)
method
- the method for which the parameter names shall be retrieved;
never null
null