org.apache.derby.iapi.services.loader
Class ClassFactoryContext

java.lang.Object
  extended byorg.apache.derby.iapi.services.context.ContextImpl
      extended byorg.apache.derby.iapi.services.loader.ClassFactoryContext
All Implemented Interfaces:
Context
Direct Known Subclasses:
StoreClassFactoryContext

public abstract class ClassFactoryContext
extends ContextImpl


Field Summary
private  ClassFactory cf
           
static java.lang.String CONTEXT_ID
           
 
Fields inherited from class org.apache.derby.iapi.services.context.ContextImpl
 
Constructor Summary
ClassFactoryContext(ContextManager cm, ClassFactory cf)
           
 
Method Summary
 void cleanupOnError(java.lang.Throwable error)
          Contexts will be passed errors that are caught by the outer system when they are serious enough to require corrective action.
 ClassFactory getClassFactory()
           
abstract  JarReader getJarReader()
          Get the mechanism to rad jar files.
abstract  java.lang.Object getLockSpace()
           
abstract  PersistentSet getPersistentSet()
           
 
Methods inherited from class org.apache.derby.iapi.services.context.ContextImpl
appendErrorInfo, getContextManager, getIdName, isLastHandler, popMe, pushMe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTEXT_ID

public static final java.lang.String CONTEXT_ID
See Also:
Constant Field Values

cf

private final ClassFactory cf
Constructor Detail

ClassFactoryContext

public ClassFactoryContext(ContextManager cm,
                           ClassFactory cf)
Method Detail

getClassFactory

public ClassFactory getClassFactory()

getLockSpace

public abstract java.lang.Object getLockSpace()
                                       throws StandardException
Throws:
StandardException

getPersistentSet

public abstract PersistentSet getPersistentSet()
                                        throws StandardException
Throws:
StandardException

getJarReader

public abstract JarReader getJarReader()
Get the mechanism to rad jar files. The ClassFactory may keep the JarReader reference from the first class load.


cleanupOnError

public void cleanupOnError(java.lang.Throwable error)
Description copied from interface: Context
Contexts will be passed errors that are caught by the outer system when they are serious enough to require corrective action. They will be told what the error is, so that they can react appropriately. Most of the time, the contexts will react by either doing nothing or by removing themselves from the context manager. If there are no other references to the context, removing itself from the manager equates to freeing it.

Contexts must release all their resources before removing themselves from their context manager.

The context manager will "unwind" the contexts during cleanup in the reverse order they were placed on its global stack.

If error is an instance of StandardException then an implementation of this method may throw a new exception if and only if the new exception is an instance of StandardException that is more severe than the original error or the new exception is a not an instance of StandardException (e.g java.lang.NullPointerException).


Built on Tue 2006-10-10 19:23:47+0200, from revision exported

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.