#include <ContextClassLoader.hxx>
Definition at line 32 of file ContextClassLoader.hxx.
◆ ContextClassLoaderScope() [1/2]
connectivity::jdbc::ContextClassLoaderScope::ContextClassLoaderScope |
( |
JNIEnv & |
environment, |
|
|
const GlobalRef< jobject > & |
newClassLoader, |
|
|
const ::comphelper::EventLogger & |
_rLoggerForErrors, |
|
|
const css::uno::Reference< css::uno::XInterface > & |
_rxErrorContext |
|
) |
| |
creates the instance.
If isActive returns <FALSE> afterwards, then an exception happened in the JVM, which should be raised as UNO exception by the caller
- Parameters
-
environment | the current JNI environment |
newClassLoader | the new class loader to set at the current thread |
_rLoggerForErrors | the logger which should be passed to java_lang_object::ThrowLoggedSQLException in case an error occurs |
_rxErrorContext | the context which should be passed to java_lang_object::ThrowLoggedSQLException in case an error occurs |
◆ ~ContextClassLoaderScope()
connectivity::jdbc::ContextClassLoaderScope::~ContextClassLoaderScope |
( |
| ) |
|
◆ ContextClassLoaderScope() [2/2]
◆ isActive()
bool connectivity::jdbc::ContextClassLoaderScope::isActive |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ m_currentThread
LocalRef< jobject > connectivity::jdbc::ContextClassLoaderScope::m_currentThread |
|
private |
◆ m_environment
JNIEnv& connectivity::jdbc::ContextClassLoaderScope::m_environment |
|
private |
◆ m_oldContextClassLoader
LocalRef< jobject > connectivity::jdbc::ContextClassLoaderScope::m_oldContextClassLoader |
|
private |
◆ m_setContextClassLoaderMethod
jmethodID connectivity::jdbc::ContextClassLoaderScope::m_setContextClassLoaderMethod |
|
private |
The documentation for this class was generated from the following files: