Home » Hibernate-3.3.2.GA » org.hibernate » bytecode » [javadoc | source]
public interface: ClassTransformer [javadoc | source]

All Known Implementing Classes:
    CglibClassTransformer, AbstractClassTransformerImpl, JavassistClassTransformer

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 org.hibernate.bytecode.ClassTransformer Summary:
Method from org.hibernate.bytecode.ClassTransformer Detail:
 public byte[] transform(ClassLoader loader,
    String classname,
    Class classBeingRedefined,
    ProtectionDomain protectionDomain,
    byte[] classfileBuffer)
    Invoked when a class is being loaded or redefined to add hooks for persistence bytecode manipulation