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

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

public abstract class ClassFactoryContext
extends ContextImpl

Context that provides the correct ClassFactory for the current service. Allows stateless code to obtain the correct class loading scheme.


Field Summary
private  ClassFactory cf
           
static java.lang.String CONTEXT_ID
           
 
Constructor Summary
protected ClassFactoryContext(ContextManager cm, ClassFactory cf)
           
 
Method Summary
 void cleanupOnError(java.lang.Throwable error)
          Handle any errors.
 ClassFactory getClassFactory()
           
abstract  JarReader getJarReader()
          Get the mechanism to rad jar files.
abstract  CompatibilitySpace getLockSpace()
          Get the lock compatibility space to use for the transactional nature of the class loading lock.
abstract  PersistentSet getPersistentSet()
          Get the set of properties stored with this service.
 
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

protected ClassFactoryContext(ContextManager cm,
                              ClassFactory cf)
Method Detail

getClassFactory

public final ClassFactory getClassFactory()

getLockSpace

public abstract CompatibilitySpace getLockSpace()
                                         throws StandardException
Get the lock compatibility space to use for the transactional nature of the class loading lock. Used when the classpath changes or a database jar file is installed, removed or replaced.

Throws:
StandardException

getPersistentSet

public abstract PersistentSet getPersistentSet()
                                        throws StandardException
Get the set of properties stored with this service.

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 final void cleanupOnError(java.lang.Throwable error)
Handle any errors. Only work here is to pop myself on a session or greater severity error.


Built on Thu 2012-03-29 21:53:33+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.