com.mentorgen.tools.profile.instrument
Class Transformer

java.lang.Object
  extended by com.mentorgen.tools.profile.instrument.Transformer
All Implemented Interfaces:
java.lang.instrument.ClassFileTransformer

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

This class determines if a given class should be instrumented with profiling code or not. The property debug, when set to on, will show you which classes are being instrumented and what ones are not.

Author:
Andrew Wilcox
See Also:
ClassFileTransformer

Constructor Summary
Transformer()
           
 
Method Summary
 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

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