Package org.apache.openjpa.util
Class GeneratedClasses
java.lang.Object
org.apache.openjpa.util.GeneratedClasses
Utility methods when generating classes, including at runtime.
- Since:
- 1.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClassLoader
getMostDerivedLoader
(Class c1, Class c2) Return the more derived loader of the class laoders for the given classes.static Class
loadAsmClass
(String className, byte[] classBytes, Class<?> proxiedClass, ClassLoader loader)
-
Constructor Details
-
GeneratedClasses
public GeneratedClasses()
-
-
Method Details
-
getMostDerivedLoader
Return the more derived loader of the class laoders for the given classes. -
loadAsmClass
public static Class loadAsmClass(String className, byte[] classBytes, Class<?> proxiedClass, ClassLoader loader)
-