public class DefaultParameterNameProvider extends Object implements ParameterNameProvider
ParameterNameProvider implementation which returns
parameter names in the form arg0, arg1 etc. as defined by the
BV specification.| Constructor and Description |
|---|
DefaultParameterNameProvider() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getParameterNames(Constructor<?> constructor)
Returns the names of the parameters of the given constructor.
|
List<String> |
getParameterNames(Method method)
Returns the names of the parameters of the given method.
|
protected String |
getPrefix()
Returns the prefix to be used for parameter names.
|
public List<String> getParameterNames(Constructor<?> constructor)
ParameterNameProvidergetParameterNames in interface ParameterNameProviderconstructor - the constructor for which the parameter names shall be
retrieved; never nullnullpublic List<String> getParameterNames(Method method)
ParameterNameProvidergetParameterNames in interface ParameterNameProvidermethod - the method for which the parameter names shall be retrieved;
never nullnullprotected String getPrefix()
arg as per
the spec. Can be overridden to create customized name providers.Copyright © 2018 JBoss by Red Hat. All rights reserved.