Proceeding Join Point
Extends JoinPoint with the ability to proceed to the intercepted function's body.
A ProceedingJoinPoint is passed to Around-annotated advice functions. The advice controls whether and how the original function body executes by calling proceed.
Usage
@Around(target = [Timed::class])
fun measureTime(jp: ProceedingJoinPoint) {
val start = System.currentTimeMillis()
jp.proceed()
println("Elapsed: ${System.currentTimeMillis() - start} ms")
}See also
Types
SAM interface used by the AspectK compiler plugin to bridge the wrapper lambda generated at each intercepted call site with proceed.
Properties
Functions
Returns the AnnotationInfo for annotation T present on the intercepted function, or null if no such annotation is present.
Returns the arguments of annotation T on the intercepted function, by parameter name.
Returns JoinPoint.target cast to T, or null if the target is null or cannot be cast to T.
Proceeds with the original arguments and returns the result cast to T.
Proceeds with substituted arguments, as ProceedingJoinPoint.proceed does, and returns the result cast to T.
Proceeds with the arguments named in replacements replaced and every other one kept.