Class ReflectiveDynamicClassLoader

java.lang.Object
java.lang.ClassLoader
org.eclipse.persistence.dynamic.DynamicClassLoader
org.eclipse.persistence.internal.jpa.config.metadata.ReflectiveDynamicClassLoader

public class ReflectiveDynamicClassLoader extends DynamicClassLoader
Extended DynamicClassLoader used to create classes using reflective access to defineClass. This causes the class to be created on the provided delegate/parent loader instead of just within this custom loader. Required for frameworks that don't take and use a loader.
Since:
EclipseLink 2.4.2
  • Constructor Details

    • ReflectiveDynamicClassLoader

      public ReflectiveDynamicClassLoader(ClassLoader delegate)
  • Method Details

    • getDefineClassMethod

      protected Method getDefineClassMethod()
    • defineDynamicClass

      protected Class<?> defineDynamicClass(String name, byte[] b)
      Description copied from class: DynamicClassLoader
      Converts an array of bytes into an instance of class Class. Before the Class can be used it must be resolved.
      Overrides:
      defineDynamicClass in class DynamicClassLoader