Example #1
0
 //    public static boolean isInstrumented(String className) {
 //        for (Iterator<WeakReference<ClassLoader>> it = classLoaders.iterator(); it.hasNext();) {
 //            final WeakReference<ClassLoader> ref = it.next();
 //            final ClassLoader loader = ref.get();
 //            if (loader == null)
 //                it.remove();
 //            else {
 //                try {
 //                    if (isInstrumented(Class.forName(className, false, loader)))
 //                        return true;
 //                } catch (ClassNotFoundException ex) {
 //                }
 //            }
 //        }
 //        return false;
 //    }
 public static void addWaiver(String className, String methodName) {
   SuspendableHelper.addWaiver(className, methodName);
 }
Example #2
0
 public static boolean isWaiver(String className, String methodName) {
   return SuspendableHelper.isWaiver(className, methodName);
 }
Example #3
0
 public static boolean isInstrumented(Class clazz) {
   return SuspendableHelper.isInstrumented(clazz);
 }