Class ClassLoaderAwareGeneratorStrategy

java.lang.Object
org.springframework.cglib.core.DefaultGeneratorStrategy
org.springframework.cglib.core.ClassLoaderAwareGeneratorStrategy
All Implemented Interfaces:
GeneratorStrategy

public class ClassLoaderAwareGeneratorStrategy extends DefaultGeneratorStrategy
CGLIB GeneratorStrategy variant which exposes the application ClassLoader as current thread context ClassLoader for the time of class generation. The ASM ClassWriter in Spring's ASM variant will pick it up when doing common superclass resolution.
Since:
5.2
Author:
Juergen Hoeller