public class DefaultParameterNameDiscoverer extends PrioritizedParameterNameDiscoverer
ParameterNameDiscoverer
strategy interface,
using the Java 8 standard reflection mechanism, and falling back to the ASM-based
LocalVariableTableParameterNameDiscoverer
for checking debug information
in the class file (e.g. for classes compiled with earlier Java versions).
If a Kotlin reflection implementation is present,
KotlinReflectionParameterNameDiscoverer
is added first in the list and
used for Kotlin classes and interfaces. When compiling or running as a GraalVM
native image, the KotlinReflectionParameterNameDiscoverer
is not used.
Further discoverers may be added through PrioritizedParameterNameDiscoverer.addDiscoverer(ParameterNameDiscoverer)
.
StandardReflectionParameterNameDiscoverer
,
LocalVariableTableParameterNameDiscoverer
,
KotlinReflectionParameterNameDiscoverer
Constructor and Description |
---|
DefaultParameterNameDiscoverer() |
addDiscoverer, getParameterNames, getParameterNames