Top Description Fields Constructors Methods
org.apache.derby.iapi.services.loader

public abstract Class ClassFactoryContext

extends ContextImpl
Class Inheritance
Known Direct Subclasses
org.apache.derby.impl.db.StoreClassFactoryContext
Imports
org.apache.derby.iapi.services.context.ContextImpl, .ContextManager, org.apache.derby.iapi.services.locks.CompatibilitySpace, org.apache.derby.iapi.services.property.PersistentSet, org.apache.derby.shared.common.error.ExceptionSeverity, .StandardException

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

Field Summary

Modifier and TypeField and Description
private final ClassFactory
public static final String

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public final void
cleanupOnError(Throwable
The original error
error
)

Implements org.apache.derby.iapi.services.context.Context.cleanupOnError.

Handle any errors.

public final ClassFactory
public abstract JarReader

Returns:

the jar file reader
getJarReader
()

Get the mechanism to rad jar files.

public abstract CompatibilitySpace

Returns:

the lock compatibility space
getLockSpace
()

Get the lock compatibility space to use for the transactional nature of the class loading lock.

public abstract PersistentSet

Returns:

the set of properties stored with this service
getPersistentSet
()

Get the set of properties stored with this service.

Inherited from org.apache.derby.iapi.services.context.ContextImpl:
appendErrorInfogetContextManagergetIdNameisLastHandlerpopMepushMe

Field Detail

cfback to summary
private final ClassFactory cf
CONTEXT_IDback to summary
public static final String CONTEXT_ID

Constructor Detail

ClassFactoryContextback to summary
protected ClassFactoryContext(ContextManager cm, ClassFactory cf)

Method Detail

cleanupOnErrorback to summary
public final void cleanupOnError(Throwable error)

Implements org.apache.derby.iapi.services.context.Context.cleanupOnError.

Handle any errors. Only work here is to pop myself on a session or greater severity error.

Parameters
error:Throwable

Doc from org.apache.derby.iapi.services.context.Context.cleanupOnError.

The original error

getClassFactoryback to summary
public final ClassFactory getClassFactory()
getJarReaderback to summary
public abstract JarReader getJarReader()

Get the mechanism to rad jar files. The ClassFactory may keep the JarReader reference from the first class load.

Returns:JarReader

the jar file reader

getLockSpaceback to summary
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.

Returns:CompatibilitySpace

the lock compatibility space

Exceptions
StandardException:
on error
getPersistentSetback to summary
public abstract PersistentSet getPersistentSet() throws StandardException

Get the set of properties stored with this service.

Returns:PersistentSet

the set of properties stored with this service

Exceptions
StandardException:
on error