proceedWith

fun ProceedingJoinPoint.proceedWith(vararg replacements: Pair<String, Any?>): Any?(source)

Proceeds with the arguments named in replacements replaced and every other one kept.

Example

@Around(Normalized::class)
fun doAround(pjp: ProceedingJoinPoint): Any? =
pjp.proceedWith("name" to pjp.getArg<String>("name").trim())

Throws

if a name is not a parameter of the intercepted function.


suspend fun SuspendProceedingJoinPoint.proceedWith(vararg replacements: Pair<String, Any?>): Any?(source)

Proceeds with the arguments named in replacements replaced and every other one kept.

Throws

if a name is not a parameter of the intercepted function.