Class EnhancementProject

java.lang.Object
org.apache.openjpa.util.asm.EnhancementProject

public class EnhancementProject extends Object
Keep track of classes under enhancement.
Author:
Mark Struberg
  • Constructor Details

    • EnhancementProject

      public EnhancementProject()
  • Method Details

    • containsClass

      public boolean containsClass(String type)
      Return true if the project already contains the given class.
    • loadClass

      public ClassNodeTracker loadClass(String name)
      Load a class with the given name.
      Parameters:
      name - the fully qualified class name
      See Also:
    • loadClass

      public ClassNodeTracker loadClass(Class<?> type)
      Load a class with the given type.
      See Also:
    • loadClass

      public ClassNodeTracker loadClass(String name, ClassLoader loader)
      Load the bytecode for the class with the given name. If a ClassNodeTracker with the given name already exists in this project, it will be returned. Otherwise, a new ClassNodeTracker will be created with the given name and returned. If the name represents an existing type, the returned instance will contain the parsed bytecode for that type. If the name is of a primitive or array type, the returned instance will act accordingly.
      Parameters:
      name - the name of the class, including package
      loader - the class loader to use to search for an existing class with the given name; if null defaults to the context loader of the current thread
      Throws:
      RuntimeException - on parse error
    • loadClass

      public ClassNodeTracker loadClass(byte[] bytes, ClassLoader loader)
    • clear

      public void clear()