Interface InstrumentationFilter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldInstrument(@NonNull Object instance, @NonNull Method method, @NonNull Object[] args) Invoked prior to a method invocation, allowing control whether the invocation will be instrumented.
-
Method Details
-
shouldInstrument
Invoked prior to a method invocation, allowing control whether the invocation will be instrumented.- Parameters:
method- theMethodcorresponding to the interface method invoked on the instance.args- an array of objects containing the values of the arguments passed in the method invocation on the instance, or empty array if interface method takes no arguments. Arguments of primitive types are wrapped in instances of the appropriate primitive wrapper class, such asjava.lang.Integerorjava.lang.Boolean.- Returns:
- true if invocation should be instrumented, false if invocation should not be instrumented
-