Class DefaultParameterNameProvider
java.lang.Object
org.hibernate.validator.internal.engine.DefaultParameterNameProvider
- All Implemented Interfaces:
ParameterNameProvider
A default
ParameterNameProvider implementation which returns parameter names obtained from the Java
reflection API as mandated by the BV specification.- Author:
- Hardy Ferentschik, Gunnar Morling
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetParameterNames(Constructor<?> constructor) Returns the names of the parameters of the given constructor.getParameterNames(Method method) Returns the names of the parameters of the given method.
-
Constructor Details
-
DefaultParameterNameProvider
public DefaultParameterNameProvider()
-
-
Method Details
-
getParameterNames
Description copied from interface:ParameterNameProviderReturns the names of the parameters of the given constructor.- Specified by:
getParameterNamesin interfaceParameterNameProvider- Parameters:
constructor- the constructor for which the parameter names shall be retrieved; nevernull- Returns:
- a list containing the names of the parameters of the given
constructor; may be empty but never
null
-
getParameterNames
Description copied from interface:ParameterNameProviderReturns the names of the parameters of the given method.- Specified by:
getParameterNamesin interfaceParameterNameProvider- Parameters:
method- the method for which the parameter names shall be retrieved; nevernull- Returns:
- a list containing the names of the parameters of the given method;
may be empty but never
null
-