org.datanucleus.jpa
Class JPAClassTransformer

java.lang.Object
  extended by org.datanucleus.jpa.JPAClassTransformer
All Implemented Interfaces:
javax.persistence.spi.ClassTransformer

public class JPAClassTransformer
extends java.lang.Object
implements javax.persistence.spi.ClassTransformer

ClassTransformer for runtime enhancement of classes to the JPA interface. A persistence provider supplies 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 or redefined. The transformation occurs before the class is defined by the JVM.


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

JPAClassTransformer

public JPAClassTransformer()
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 javax.persistence.spi.ClassTransformer
Throws:
java.lang.instrument.IllegalClassFormatException


Copyright © 2011. All Rights Reserved.