java.lang.Object
java.lang.ClassLoader
org.eclipse.persistence.internal.jaxb.JaxbClassLoader

public class JaxbClassLoader extends ClassLoader
INTERNAL:

Purpose:Provide a ClassLoader implementation to allow the definition of ASM generated wrapper classes, and to lookup those classes when required.

Responsibilities:

  • Wrap the provided ClassLoader and pass method calls along
  • Maintain a map of generated wrapper classes and attempt lookups in that map if a class isn't found in the nested loader
  • Provide a public API to define a class from an array of bytes and a class name

This class is a ClassLoader implementation that maintains a map of wrapper classes generated during JAXB generation. If a class is not found in the nested classLoader, then the map of generated classes is checked.