java.lang.Object
io.lettuce.core.dynamic.support.CompositeParameterNameDiscoverer
- All Implemented Interfaces:
ParameterNameDiscoverer
public class CompositeParameterNameDiscoverer extends Object implements ParameterNameDiscoverer
Composite
ParameterNameDiscoverer to resolve parameter names using multiple ParameterNameDiscoverers.- Author:
- Mark Paluch
-
Constructor Summary
Constructors Constructor Description CompositeParameterNameDiscoverer(ParameterNameDiscoverer... parameterNameDiscoverers)CompositeParameterNameDiscoverer(Collection<ParameterNameDiscoverer> parameterNameDiscoverers) -
Method Summary
Modifier and Type Method Description 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
-
CompositeParameterNameDiscoverer
-
CompositeParameterNameDiscoverer
public CompositeParameterNameDiscoverer(Collection<ParameterNameDiscoverer> parameterNameDiscoverers)
-
-
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
-