Interface ClassFactory

All Known Implementing Classes:
DatabaseClasses, ReflectClassesJava2

public interface ClassFactory
A class factory module to handle application classes and generated classes.
  • Method Details

    • loadGeneratedClass

      GeneratedClass loadGeneratedClass(String fullyQualifiedName, ByteArray classDump) throws StandardException
      Add a generated class to the class manager's class repository.
      Throws:
      StandardException - Standard Derby error policy
    • getClassInspector

      ClassInspector getClassInspector()
      Return a ClassInspector object
    • loadApplicationClass

      Class loadApplicationClass(String className) throws ClassNotFoundException
      Load an application class, or a class that is potentially an application class.
      Throws:
      ClassNotFoundException - Class cannot be found, or a SecurityException or LinkageException was thrown loading the class.
    • loadApplicationClass

      Class loadApplicationClass(ObjectStreamClass classDescriptor) throws ClassNotFoundException
      Load an application class, or a class that is potentially an application class.
      Throws:
      ClassNotFoundException - Class cannot be found, or a SecurityException or LinkageException was thrown loading the class.
    • isApplicationClass

      boolean isApplicationClass(Class theClass)
      Was the passed in class loaded by a ClassManager.
      Returns:
      true if the class was loaded by a Derby class manager, false it is was loaded by the system class loader, or another class loader.
    • notifyModifyJar

      void notifyModifyJar(boolean reload) throws StandardException
      Notify the class manager that a jar file has been modified.
      Parameters:
      reload - Restart any attached class loader
      Throws:
      StandardException - thrown on error
    • notifyModifyClasspath

      void notifyModifyClasspath(String classpath) throws StandardException
      Notify the class manager that the classpath has been modified.
      Throws:
      StandardException - thrown on error
    • getClassLoaderVersion

      int getClassLoaderVersion()
      Return the in-memory "version" of the class manager. The version is bumped everytime the classes are re-loaded.