Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.iapi.services.loader
Interface ClassFactory  view ClassFactory download ClassFactory.java


public interface ClassFactory

A class factory module to handle application classes and generated classes.


Method Summary
 ClassInspector getClassInspector()
          Return a ClassInspector object
 int getClassLoaderVersion()
          Return the in-memory "version" of the class manager.
 boolean isApplicationClass(java.lang.Class theClass)
          Was the passed in class loaded by a ClassManager.
 java.lang.Class loadApplicationClass(java.io.ObjectStreamClass classDescriptor)
          Load an application class, or a class that is potentially an application class.
 java.lang.Class loadApplicationClass(java.lang.String className)
          Load an application class, or a class that is potentially an application class.
 GeneratedClass loadGeneratedClass(java.lang.String fullyQualifiedName, org.apache.derby.iapi.util.ByteArray classDump)
          Add a generated class to the class manager's class repository.
 void notifyModifyClasspath(java.lang.String classpath)
          Notify the class manager that the classpath has been modified.
 void notifyModifyJar(boolean reload)
          Notify the class manager that a jar file has been modified.
 

Method Detail

loadGeneratedClass

public GeneratedClass loadGeneratedClass(java.lang.String fullyQualifiedName,
                                         org.apache.derby.iapi.util.ByteArray classDump)
                                  throws org.apache.derby.iapi.error.StandardException
Add a generated class to the class manager's class repository.


getClassInspector

public ClassInspector getClassInspector()
Return a ClassInspector object


loadApplicationClass

public 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.


loadApplicationClass

public 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.


isApplicationClass

public boolean isApplicationClass(java.lang.Class theClass)
Was the passed in class loaded by a ClassManager.


notifyModifyJar

public void notifyModifyJar(boolean reload)
                     throws org.apache.derby.iapi.error.StandardException
Notify the class manager that a jar file has been modified.


notifyModifyClasspath

public void notifyModifyClasspath(java.lang.String classpath)
                           throws org.apache.derby.iapi.error.StandardException
Notify the class manager that the classpath has been modified.


getClassLoaderVersion

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