| java.lang.Object org.apache.derby.impl.services.reflect.DatabaseClasses
All known Subclasses: org.apache.derby.impl.services.reflect.ReflectClassesJava2,
DatabaseClasses | abstract class DatabaseClasses implements ClassFactory,ModuleControl(Code) | | An abstract implementation of the ClassFactory. This package can
be extended to fully implement a ClassFactory. Implementations can
differ in two areas, how they load a class and how they invoke methods
of the generated class.
This class manages a hash table of loaded generated classes and
their GeneratedClass objects. A loaded class may be referenced
multiple times -- each class has a reference count associated
with it. When a load request arrives, if the class has already
been loaded, its ref count is incremented. For a remove request,
the ref count is decremented unless it is the last reference,
in which case the class is removed. This is transparent to users.
See Also: org.apache.derby.iapi.services.loader.ClassFactory |
DatabaseClasses | DatabaseClasses()(Code) | | |
getClassLoaderVersion | public int getClassLoaderVersion()(Code) | | |
isApplicationClass | public boolean isApplicationClass(Class theClass)(Code) | | |
loadGeneratedClass | final public GeneratedClass loadGeneratedClass(String fullyQualifiedName, ByteArray classDump) throws StandardException(Code) | | Here we load the newly added class now, rather than waiting for the
findGeneratedClass(). Thus we are assuming that the class is going
to be used sometime soon. Delaying the load would mean storing the class
data in a file, this wastes cycles and compilcates the cleanup.
See Also: ClassFactory.loadGeneratedClass exception: StandardException - Class format is bad. |
|
|