Class EnhancerClassLoader


  • public final class EnhancerClassLoader
    extends ClassLoader
    ClassLoader for newly defined classes. Parent classloader is the context classloader obtained during instantiation of this class
    • Constructor Detail

      • EnhancerClassLoader

        public EnhancerClassLoader()
    • Method Detail

      • defineClass

        public void defineClass​(String fullClassName,
                                byte[] bytes,
                                ClassLoaderResolver clr)
        Define a class in this ClassLoader.
        Parameters:
        fullClassName - the class name
        bytes - the bytes representation of the class
        clr - the ClassLoaderResolver to load linked classes
      • findResource

        protected URL findResource​(String name)
        Overwrite to have an opportunity to find resources from the delegate ClassLoaderResolver
        Overrides:
        findResource in class ClassLoader