class ClassFileTransformerAdapter
extends java.lang.Object
implements java.lang.instrument.ClassFileTransformer
java.lang.instrument.ClassFileTransformer
interface based on a JPA ClassTransformer which a JPA PersistenceProvider asks the
PersistenceUnitInfo to install in the current runtime.javax.persistence.spi.PersistenceUnitInfo#addTransformer(javax.persistence.spi.ClassTransformer)
Modifier and Type | Field and Description |
---|---|
private ClassTransformer |
classTransformer |
private static Log |
logger |
Constructor and Description |
---|
ClassFileTransformerAdapter(ClassTransformer classTransformer) |
private static final Log logger
private final ClassTransformer classTransformer
public ClassFileTransformerAdapter(ClassTransformer classTransformer)
public byte[] transform(java.lang.ClassLoader loader, java.lang.String className, java.lang.Class<?> classBeingRedefined, java.security.ProtectionDomain protectionDomain, byte[] classfileBuffer)
transform
in interface java.lang.instrument.ClassFileTransformer
public java.lang.String toString()
toString
in class java.lang.Object