chord.instr
Class OnlineTransformer

java.lang.Object
  extended by chord.instr.OnlineTransformer
All Implemented Interfaces:
java.lang.instrument.ClassFileTransformer

public final class OnlineTransformer
extends java.lang.Object
implements java.lang.instrument.ClassFileTransformer

Online (load-time) class-file transformer.

Author:
Mayur Naik (mhn@cs.stanford.edu)

Constructor Summary
OnlineTransformer(BasicInstrumentor instr)
           
 
Method Summary
static void premain(java.lang.String agentArgs, java.lang.instrument.Instrumentation instrumentation)
           
 byte[] transform(java.lang.ClassLoader loader, java.lang.String className, java.lang.Class<?> classBeingRedefined, java.security.ProtectionDomain protectionDomain, byte[] classfileBuffer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OnlineTransformer

public OnlineTransformer(BasicInstrumentor instr)
Method Detail

premain

public static void premain(java.lang.String agentArgs,
                           java.lang.instrument.Instrumentation instrumentation)

transform

public byte[] transform(java.lang.ClassLoader loader,
                        java.lang.String className,
                        java.lang.Class<?> classBeingRedefined,
                        java.security.ProtectionDomain protectionDomain,
                        byte[] classfileBuffer)
                 throws java.lang.instrument.IllegalClassFormatException
Specified by:
transform in interface java.lang.instrument.ClassFileTransformer
Throws:
java.lang.instrument.IllegalClassFormatException