Class ReflectiveDynamicClassLoader


  • public class ReflectiveDynamicClassLoader
    extends org.eclipse.persistence.dynamic.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
    Author:
    dclarke
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.persistence.dynamic.DynamicClassLoader

        org.eclipse.persistence.dynamic.DynamicClassLoader.EnumInfo
    • Field Summary

      • Fields inherited from class org.eclipse.persistence.dynamic.DynamicClassLoader

        classWriters, defaultWriter, enumInfoRegistry
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Class<?> defineDynamicClass​(java.lang.String name, byte[] b)  
      protected java.lang.reflect.Method getDefineClassMethod()  
      • Methods inherited from class org.eclipse.persistence.dynamic.DynamicClassLoader

        addClass, addClass, addClass, addEnum, checkAssignable, createDynamicClass, createDynamicClass, createDynamicClass, findClass, getClassWriter, getClassWriters, getDefaultWriter, lookup
      • Methods inherited from class java.lang.ClassLoader

        clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReflectiveDynamicClassLoader

        public ReflectiveDynamicClassLoader​(java.lang.ClassLoader delegate)
    • Method Detail

      • getDefineClassMethod

        protected java.lang.reflect.Method getDefineClassMethod()
      • defineDynamicClass

        protected java.lang.Class<?> defineDynamicClass​(java.lang.String name,
                                                        byte[] b)
        Overrides:
        defineDynamicClass in class org.eclipse.persistence.dynamic.DynamicClassLoader