AbstractClassTransformerImplpublic abstract class AbstractClassTransformerImpl extends Object implements ClassTransformer
Fields Summary |
---|
protected final org.hibernate.bytecode.util.ClassFilter | classFilter | protected final org.hibernate.bytecode.util.FieldFilter | fieldFilter |
Methods Summary |
---|
protected abstract byte[] | doTransform(java.lang.ClassLoader loader, java.lang.String className, java.lang.Class classBeingRedefined, java.security.ProtectionDomain protectionDomain, byte[] classfileBuffer)
| public byte[] | transform(java.lang.ClassLoader loader, java.lang.String className, java.lang.Class classBeingRedefined, java.security.ProtectionDomain protectionDomain, byte[] classfileBuffer)
// to be safe...
className = className.replace( '/", '." );
if ( classFilter.shouldInstrumentClass( className ) ) {
return doTransform( loader, className, classBeingRedefined, protectionDomain, classfileBuffer );
}
else {
return classfileBuffer;
}
|
|