View Javadoc
1 package net.sf.cglib.transform; 2 3 import java.util.*; 4 import net.sf.cglib.core.ClassGenerator; 5 import org.objectweb.asm.*; 6 7 public class TransformingClassLoader extends AbstractClassLoader { 8 private ClassTransformerFactory t; 9 10 public TransformingClassLoader(ClassLoader parent, ClassFilter filter, ClassTransformerFactory t) { 11 super(parent, parent, filter); 12 this.t = t; 13 } 14 15 protected ClassGenerator getGenerator(ClassReader r) { 16 ClassTransformer t2 = (ClassTransformer)t.newInstance(); 17 return new TransformingClassGenerator(super.getGenerator(r), t2); 18 } 19 }

This page was automatically generated by Maven