Home » apache-tomcat-6.0.26-src » javax » persistence » spi » [javadoc | source]
public interface: ClassTransformer [javadoc | source] A persistence provider provides an instance of this interface to the PersistenceUnitInfo.addTransformer method. The supplied transformer instance will get called to transform entity class files when they are loaded and redefined. The transformation occurs before the class is defined by the JVM
Method from javax.persistence.spi.ClassTransformer Summary:
Method from javax.persistence.spi.ClassTransformer Detail:
 public byte[] transform(ClassLoader loader,
    String classname,
    Class<?> classBeingRedefined,
    ProtectionDomain protectionDomain,
    byte[] classfileBuffer) throws IllegalClassFormatException
    Invoked when a class is being loaded or redefined to add hooks for persistence bytecode manipulation