Module org.eclipse.persistence.jpa
Class ReflectiveDynamicClassLoader
java.lang.Object
java.lang.ClassLoader
org.eclipse.persistence.dynamic.DynamicClassLoader
org.eclipse.persistence.internal.jpa.config.metadata.ReflectiveDynamicClassLoader
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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.persistence.dynamic.DynamicClassLoader
DynamicClassLoader.EnumInfo
-
Field Summary
Fields inherited from class org.eclipse.persistence.dynamic.DynamicClassLoader
classWriters, defaultWriter, enumInfoRegistry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Class
<?> defineDynamicClass
(String name, byte[] b) Converts an array of bytes into an instance of classClass
.protected Method
Methods inherited from class org.eclipse.persistence.dynamic.DynamicClassLoader
addClass, addClass, addClass, addEnum, checkAssignable, createDynamicAdapter, createDynamicClass, createDynamicClass, createDynamicClass, createDynamicCollectionAdapter, createDynamicReferenceAdapter, 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
-
Constructor Details
-
ReflectiveDynamicClassLoader
-
-
Method Details
-
getDefineClassMethod
-
defineDynamicClass
Description copied from class:DynamicClassLoader
Converts an array of bytes into an instance of classClass
. Before theClass
can be used it must be resolved.- Overrides:
defineDynamicClass
in classDynamicClassLoader
-