Relates to #277. Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>tags/V1_9_21_1
@@ -34,6 +34,8 @@ public interface ClassPreProcessor { | |||
* @param protectionDomain the protection domain of the class being defined or redefined | |||
* | |||
* @return a well-formed class file buffer (weaving result), or {@code null} if no weaving was performed | |||
* | |||
* @see java.lang.instrument.ClassFileTransformer#transform(ClassLoader, String, Class, ProtectionDomain, byte[]) | |||
*/ | |||
byte[] preProcess(String className, final byte[] bytes, ClassLoader classLoader, ProtectionDomain protectionDomain); | |||
@@ -326,6 +326,8 @@ public class WeavingAdaptor implements IMessageContext { | |||
* @return a well-formed class file buffer (the weaving result), or {@code null} if no weaving was performed | |||
* | |||
* @throws IOException weave failed | |||
* | |||
* @see java.lang.instrument.ClassFileTransformer#transform(ClassLoader, String, Class, ProtectionDomain, byte[]) | |||
*/ | |||
public byte[] weaveClass(String name, final byte[] bytes, boolean mustWeave) throws IOException { | |||
if (trace == null) { |