public interface ParameterNameProvider
Provides names for method and constructor parameters.
Used by the Bean Validation runtime when creating constraint violation objects for violated method constraints.
Implementations must be thread-safe.
Modifier and Type | Method and Description |
---|---|
String[] |
getParameterNames(Constructor<?> constructor)
Returns the names of the parameters of the given constructor.
|
String[] |
getParameterNames(Method method)
Returns the names of the parameters of the given method.
|
String[] getParameterNames(Constructor<?> constructor)
constructor
- The constructor for which the parameter names shall be
retrieved. Never null.String[] getParameterNames(Method method)
method
- The method for which the parameter names shall be retrieved.
Never null.Copyright © 2013. All Rights Reserved.