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")
}Content copied to clipboard
See also
Default Proceeding Join Point
Types
Link copied to clipboard
SAM interface used by the AspectK compiler plugin to bridge the wrapper lambda generated at each intercepted call site with proceed.
Properties
Functions
Link copied to clipboard
Returns the AnnotationInfo for annotation T present on the intercepted function, or null if no such annotation is present.
Link copied to clipboard
Link copied to clipboard
Returns JoinPoint.target cast to T, or null if the target is null or cannot be cast to T.