spring-framework / org.springframework.aop.support / AopUtils / invokeJoinpointUsingReflection

invokeJoinpointUsingReflection

@Nullable open static fun invokeJoinpointUsingReflection(@Nullable target: Any, method: Method, args: Array<Any>): Any

Invoke the given target via reflection, as part of an AOP method invocation.

Parameters

target - the target object

method - the method to invoke

args - the arguments for the method

Exceptions

Throwable - if thrown by the target method

org.springframework.aop.AopInvocationException - in case of a reflection error

Return
the invocation result, if any