Interface ClassFactory

  • All Known Implementing Classes:
    DatabaseClasses, ReflectClassesJava2

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

      • getClassInspector

        ClassInspector getClassInspector()
        Return a ClassInspector object
      • loadApplicationClass

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

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

        boolean isApplicationClass​(java.lang.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​(java.lang.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.