类 ClassLoaderAwareGeneratorStrategy

  • 所有已实现的接口:
    org.springframework.cglib.core.GeneratorStrategy

    public class ClassLoaderAwareGeneratorStrategy
    extends org.springframework.cglib.core.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.
    从以下版本开始:
    5.2
    作者:
    Juergen Hoeller
    • 方法详细资料

      • generate

        public byte[] generate​(org.springframework.cglib.core.ClassGenerator cg)
                        throws Exception
        指定者:
        generate 在接口中 org.springframework.cglib.core.GeneratorStrategy
        覆盖:
        generate 在类中 org.springframework.cglib.core.DefaultGeneratorStrategy
        抛出:
        Exception