java.lang.Object
io.lettuce.core.dynamic.support.AnnotationParameterNameDiscoverer
- All Implemented Interfaces:
ParameterNameDiscoverer
public class AnnotationParameterNameDiscoverer extends Object implements ParameterNameDiscoverer
ParameterNameDiscoverer based on Param annotations to resolve parameter names.- Author:
- Mark Paluch
-
Constructor Summary
Constructors Constructor Description AnnotationParameterNameDiscoverer() -
Method Summary
Modifier and Type Method Description protected String[]doGetParameterNames(Annotation[][] parameterAnnotations)String[]getParameterNames(Constructor<?> ctor)Return parameter names for this constructor, ornullif they cannot be determined.String[]getParameterNames(Method method)Return parameter names for this method, ornullif they cannot be determined.
-
Constructor Details
-
AnnotationParameterNameDiscoverer
public AnnotationParameterNameDiscoverer()
-
-
Method Details
-
getParameterNames
Description copied from interface:ParameterNameDiscovererReturn parameter names for this method, ornullif they cannot be determined.- Specified by:
getParameterNamesin interfaceParameterNameDiscoverer- Parameters:
method- method to find parameter names for- Returns:
- an array of parameter names if the names can be resolved, or
nullif they cannot
-
getParameterNames
Description copied from interface:ParameterNameDiscovererReturn parameter names for this constructor, ornullif they cannot be determined.- Specified by:
getParameterNamesin interfaceParameterNameDiscoverer- Parameters:
ctor- constructor to find parameter names for- Returns:
- an array of parameter names if the names can be resolved, or
nullif they cannot
-
doGetParameterNames
-