org.siebengeisslein.client.instrument
Class Transformer

java.lang.Object
  extended by org.siebengeisslein.client.instrument.Transformer
All Implemented Interfaces:
java.lang.instrument.ClassFileTransformer

public class Transformer
extends java.lang.Object
implements java.lang.instrument.ClassFileTransformer


Constructor Summary
Transformer()
           
 
Method Summary
 byte[] instrument(java.io.InputStream in, java.lang.ClassLoader cl)
           
 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

Transformer

public Transformer()
Method Detail

instrument

public byte[] instrument(java.io.InputStream in,
                         java.lang.ClassLoader cl)
                  throws java.io.IOException
Throws:
java.io.IOException

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