Interface Static Methods
The following code snippet shows an example static interface method:
package jdk8;
interface InterfaceForStaticMethod
{
static int sum(int acc, int x)
{
return acc + x;
}
}
The actual bytecode for the method would reside in the compiled class file, so a class match against the interface class in the Splunk AppDynamics configuration would result in the instrumentation of that class for a business transaction.
To instrument such methods, create a POJO business transaction match rule for the interfaceForStaticMethod
In this case, the rule would match classes with a Class Name of jdk8.InterfaceForStaticMethod