spring-framework / org.springframework.aop.aspectj / AspectJAdviceParameterNameDiscoverer / getParameterNames

getParameterNames

@Nullable open fun getParameterNames(method: Method): Array<String>

Deduce the parameter names for an advice method.

See the AspectJAdviceParameterNameDiscoverer for this class for details of the algorithm used.

Parameters

method - the target Method

Return
the parameter names

@Nullable open fun getParameterNames(ctor: Constructor<*>): Array<String>

An advice method can never be a constructor in Spring.

Exceptions

UnsupportedOperationException - if raiseExceptions has been set to true

Return
null