javax.persistence.spi
Interface ClassTransformer


public interface ClassTransformer

Interface implemented by a persistence provider.


Method Summary
 byte[] transform(java.lang.ClassLoader loader, java.lang.String className, java.lang.Class<?> oldClass, java.security.ProtectionDomain protectionDomain, byte[] classFile)
          Create an return an EntityManagerFactory for the named unit.
 

Method Detail

transform

byte[] transform(java.lang.ClassLoader loader,
                 java.lang.String className,
                 java.lang.Class<?> oldClass,
                 java.security.ProtectionDomain protectionDomain,
                 byte[] classFile)
                 throws java.lang.instrument.IllegalClassFormatException
Create an return an EntityManagerFactory for the named unit.

Throws:
java.lang.instrument.IllegalClassFormatException