Package org.datanucleus.api.jpa
Class JPAClassTransformer
- java.lang.Object
-
- org.datanucleus.api.jpa.JPAClassTransformer
-
- All Implemented Interfaces:
javax.persistence.spi.ClassTransformer
public class JPAClassTransformer extends 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
Constructors Constructor Description JPAClassTransformer(Map contextProps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
transform(ClassLoader loader, String className, Class classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer)
-
-
-
Constructor Detail
-
JPAClassTransformer
public JPAClassTransformer(Map contextProps)
-
-
Method Detail
-
transform
public byte[] transform(ClassLoader loader, String className, Class classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException
- Specified by:
transform
in interfacejavax.persistence.spi.ClassTransformer
- Throws:
IllegalClassFormatException
-
-