org.apache.openjpa.util
Class GeneratedClasses

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

public class GeneratedClasses
extends Object

Utility methods when generating classes, including at runtime.

Since:
1.0.0

Constructor Summary
GeneratedClasses()
           
 
Method Summary
static ClassLoader getMostDerivedLoader(Class c1, Class c2)
          Return the more derived loader of the class laoders for the given classes.
static Class loadBCClass(serp.bytecode.BCClass bc, 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 ClassLoader getMostDerivedLoader(Class c1,
                                               Class c2)
Return the more derived loader of the class laoders for the given classes.


loadBCClass

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



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