javax.persistence.spi
Interface ClassTransformer

public interface ClassTransformer

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.