org.apache.openjpa.util
Class GeneratedClasses

java.lang.Object
  extended by org.apache.openjpa.util.GeneratedClasses

public class GeneratedClasses
extends java.lang.Object

Utility methods when generating classes, including at runtime.

Since:
1.0.0

Constructor Summary
GeneratedClasses()
           
 
Method Summary
static java.lang.ClassLoader getMostDerivedLoader(java.lang.Class c1, java.lang.Class c2)
          Return the more derived loader of the class laoders for the given classes.
static java.lang.Class loadBCClass(serp.bytecode.BCClass bc, java.lang.ClassLoader loader)
          Load the class represented by the given bytecode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneratedClasses

public GeneratedClasses()
Method Detail

getMostDerivedLoader

public static java.lang.ClassLoader getMostDerivedLoader(java.lang.Class c1,
                                                         java.lang.Class c2)
Return the more derived loader of the class laoders for the given classes.


loadBCClass

public static java.lang.Class loadBCClass(serp.bytecode.BCClass bc,
                                          java.lang.ClassLoader loader)
Load the class represented by the given bytecode.



Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.