Top Description Fields Constructors Methods
org.eclipse.persistence.internal.jpa.config.metadata

public Class ReflectiveDynamicClassLoader

extends DynamicClassLoader
Class Inheritance
Imports
java.lang.reflect.Method, 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.
Author
dclarke
Since
EclipseLink 2.4.2

Field Summary

Modifier and TypeField and Description
private Method
Inherited from org.eclipse.persistence.dynamic.DynamicClassLoader:
classWritersdefaultWriterenumInfoRegistry

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Class<?>
defineDynamicClass(String name, byte[] b)

Overrides org.eclipse.persistence.dynamic.DynamicClassLoader.defineDynamicClass.

Converts an array of bytes into an instance of class Class.
protected Method
Inherited from org.eclipse.persistence.dynamic.DynamicClassLoader:
addClassaddClassaddClassaddEnumcheckAssignablecreateDynamicAdaptercreateDynamicClasscreateDynamicClasscreateDynamicClasscreateDynamicCollectionAdaptercreateDynamicReferenceAdapterfindClassgetClassWritergetClassWritersgetDefaultWriterlookup

Field Detail

defineClassMethodback to summary
private Method defineClassMethod

Constructor Detail

ReflectiveDynamicClassLoaderback to summary
public ReflectiveDynamicClassLoader(ClassLoader delegate)

Method Detail

defineDynamicClassback to summary
protected Class<?> defineDynamicClass(String name, byte[] b)

Overrides org.eclipse.persistence.dynamic.DynamicClassLoader.defineDynamicClass.

Doc from org.eclipse.persistence.dynamic.DynamicClassLoader.defineDynamicClass.

Converts an array of bytes into an instance of class Class. Before the Class can be used it must be resolved.

Annotations
@Override
getDefineClassMethodback to summary
protected Method getDefineClassMethod()