@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface Interception
You can get information from the intercepted method like parameter values, the instance or the return value by declaring parameters annotated with
the annotations from the com.jprofiler.api.probe.injected.parameter package. You can also declare a parameter of type ProbeContext
to
open or close control objects or check if the probe is currently being recorded.
Modifier and Type | Required Element and Description |
---|---|
InvocationType |
invokeOn
The point at which the annotated probe method is invoked.
|
MethodSpec |
method
Specifies the method that should be intercepted.
|
Modifier and Type | Optional Element and Description |
---|---|
boolean |
reentrant
Indicates if your interception is reentrant.
|
public abstract InvocationType invokeOn
public abstract MethodSpec method