public class

PrioritizedParameterNameDiscoverer

extends Object
implements ParameterNameDiscoverer
java.lang.Object
   ↳ org.springframework.core.PrioritizedParameterNameDiscoverer

Class Overview

ParameterNameDiscoverer implementation that tries several ParameterNameDiscoverers in succession. Those added first in the addDiscoverer method have highest priority. If one returns null, the next will be tried.

The default behavior is always to return null if no discoverer matches.

Summary

Public Constructors
PrioritizedParameterNameDiscoverer()
Public Methods
void addDiscoverer(ParameterNameDiscoverer pnd)
Add a further ParameterNameDiscoverer to the list of discoverers that this PrioritizedParameterNameDiscoverer checks.
String[] getParameterNames(Method method)
Return parameter names for this method, or null if they cannot be determined.
String[] getParameterNames(Constructor ctor)
Return parameter names for this constructor, or null if they cannot be determined.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.core.ParameterNameDiscoverer

Public Constructors

public PrioritizedParameterNameDiscoverer ()

Also: SpringCore

Public Methods

public void addDiscoverer (ParameterNameDiscoverer pnd)

Also: SpringCore

Add a further ParameterNameDiscoverer to the list of discoverers that this PrioritizedParameterNameDiscoverer checks.

public String[] getParameterNames (Method method)

Also: SpringCore

Return parameter names for this method, or null if they cannot be determined.

Parameters
method method to find parameter names for
Returns
  • an array of parameter names if the names can be resolved, or null if they cannot

public String[] getParameterNames (Constructor ctor)

Also: SpringCore

Return parameter names for this constructor, or null if they cannot be determined.

Parameters
ctor constructor to find parameter names for
Returns
  • an array of parameter names if the names can be resolved, or null if they cannot