FileDocCategorySizeDatePackage
AbstractClassTransformerImpl.javaAPI DocHibernate 3.2.51236Thu Aug 03 15:35:26 BST 2006org.hibernate.bytecode

AbstractClassTransformerImpl

public abstract class AbstractClassTransformerImpl extends Object implements ClassTransformer
author
Emmanuel Bernard
author
Steve Ebersole

Fields Summary
protected final org.hibernate.bytecode.util.ClassFilter
classFilter
protected final org.hibernate.bytecode.util.FieldFilter
fieldFilter
Constructors Summary
protected AbstractClassTransformerImpl(org.hibernate.bytecode.util.ClassFilter classFilter, org.hibernate.bytecode.util.FieldFilter fieldFilter)

		this.classFilter = classFilter;
		this.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;
		}