public final static void fireProbe ( long probeId , Object instance , Object target , Object args ) { // Load statics onto the stack to avoid a window where they can be cleared // between the test for null and the invocation of the method Object proxyTarget = fireProbeTarget ; Method method = fireProbeMethod ; if ( proxyTarget == null || method == null ) { return ; } try { method . invoke ( proxyTarget , probeId , instance , target , args ) ; } catch ( Throwable t ) { t . printStackTrace ( ) ; } }
Fire a probe event to the registered target .