/** * record the fact that a trigger call has failed to install into bytecode associated with a specific * class and loader * @param loader the loader of the class for which injection was attempted * @param internalClassName the internal Java name of the class * @param triggerMethodName the name of the method injected into * @param desc the descriptor of the method injected into * @param rule the rule which was injected * @param th throwable generated during the attempt to parse the rule text or inject code at the trigger point * @return true if the successful injection was recorded false if not */ public synchronized boolean recordTransform(ClassLoader loader, String internalClassName, String triggerMethodName, String desc, Rule rule, Throwable th) { if (deleted) { return false; } String fullMethodName = null; if (triggerMethodName != null) { fullMethodName = triggerMethodName + TypeHelper.internalizeDescriptor(desc); } // make sure we know about this specific loader and classname combination TransformSet transformSet = ensureTransformSet(loader, internalClassName, null); // and install the transform in the set transformSet.add(new Transform(loader, internalClassName, fullMethodName, rule, th)); return true; }
/** * record the fact that a trigger call has failed to install into bytecode associated with a specific * class and loader * @param loader the loader of the class for which injection was attempted * @param internalClassName the internal Java name of the class * @param triggerMethodName the name of the method injected into * @param desc the descriptor of the method injected into * @param rule the rule which was injected * @param th throwable generated during the attempt to parse the rule text or inject code at the trigger point * @return true if the successful injection was recorded false if not */ public synchronized boolean recordTransform(ClassLoader loader, String internalClassName, String triggerMethodName, String desc, Rule rule, Throwable th) { if (deleted) { return false; } String fullMethodName = null; if (triggerMethodName != null) { fullMethodName = triggerMethodName + TypeHelper.internalizeDescriptor(desc); } // make sure we know about this specific loader and classname combination TransformSet transformSet = ensureTransformSet(loader, internalClassName, null); // and install the transform in the set transformSet.add(new Transform(loader, internalClassName, fullMethodName, rule, th)); return true; }