Class ClassFactoryContext
java.lang.Object
org.apache.derby.iapi.services.context.ContextImpl
org.apache.derby.iapi.services.loader.ClassFactoryContext
- All Implemented Interfaces:
Context
- Direct Known Subclasses:
StoreClassFactoryContext
Context that provides the correct ClassFactory for the
current service. Allows stateless code to obtain the
correct class loading scheme.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
cleanupOnError
(Throwable error) Handle any errors.final ClassFactory
abstract JarReader
Get the mechanism to rad jar files.abstract CompatibilitySpace
Get the lock compatibility space to use for the transactional nature of the class loading lock.abstract PersistentSet
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
-
Field Details
-
CONTEXT_ID
- See Also:
-
cf
-
-
Constructor Details
-
ClassFactoryContext
-
-
Method Details
-
getClassFactory
-
getLockSpace
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
Get the set of properties stored with this service.- Throws:
StandardException
-
getJarReader
Get the mechanism to rad jar files. The ClassFactory may keep the JarReader reference from the first class load. -
cleanupOnError
Handle any errors. Only work here is to pop myself on a session or greater severity error.
-