Kotlin: Get method parameter values
I am trying to get parameter values passed to the method I am crossing.
The way I am getting it right now is using join point args.
Code:
@Around("@annotation(Log)")
fun log(joinPoint: ProceedingJoinPoint): Any {
val signature = joinPoint.signature as MethodSignature
val methodName = signature.method.name
val parameterTypes = signature.method.parameterTypes
var paramValues = ""
// TODO: make this a bit more useful
logger.info("begin execution of $methodName")...