org.sourceforge.jemm.weaver
Class InstrumentationTransformer

java.lang.Object
  extended by org.sourceforge.jemm.weaver.InstrumentationTransformer
All Implemented Interfaces:
java.lang.instrument.ClassFileTransformer

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


Constructor Summary
InstrumentationTransformer()
           
 
Method Summary
 byte[] transform(java.lang.ClassLoader classLoader, java.lang.String className, java.lang.Class<?> clazz, java.security.ProtectionDomain pd, byte[] bytes)
          Enhances any classes which have been annotated with @Entity, otherwise returns null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstrumentationTransformer

public InstrumentationTransformer()
Method Detail

transform

public byte[] transform(java.lang.ClassLoader classLoader,
                        java.lang.String className,
                        java.lang.Class<?> clazz,
                        java.security.ProtectionDomain pd,
                        byte[] bytes)
                 throws java.lang.instrument.IllegalClassFormatException
Enhances any classes which have been annotated with @Entity, otherwise returns null.

Specified by:
transform in interface java.lang.instrument.ClassFileTransformer
Throws:
java.lang.instrument.IllegalClassFormatException


Copyright © 2009. All Rights Reserved.