Package jakarta.validation
Interface ParameterNameProvider
- 
public interface ParameterNameProviderProvides names for method and constructor parameters.Used by the Jakarta Validation runtime when creating constraint violation objects for violated method constraints.
Implementations must be thread-safe.
- Since:
 - 1.1
 - Author:
 - Gunnar Morling
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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. 
 - 
 
- 
- 
Method Detail
- 
getParameterNames
java.util.List<java.lang.String> getParameterNames(java.lang.reflect.Constructor<?> constructor)
Returns the names of the parameters of the given constructor.- 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
java.util.List<java.lang.String> getParameterNames(java.lang.reflect.Method method)
Returns the names of the parameters of the given method.- 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 
 
 - 
 
 -