LibreOffice Module stoc (master) 1
|
#include <javavm.hxx>
Public Member Functions | |
JavaVirtualMachine (css::uno::Reference< css::uno::XComponentContext > xContext) | |
virtual void SAL_CALL | initialize (css::uno::Sequence< css::uno::Any > const &rArguments) override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (OUString const &rServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual css::uno::Any SAL_CALL | getJavaVM (css::uno::Sequence< sal_Int8 > const &rProcessId) override |
virtual sal_Bool SAL_CALL | isVMStarted () override |
virtual sal_Bool SAL_CALL | isVMEnabled () override |
virtual sal_Bool SAL_CALL | isThreadAttached () override |
virtual void SAL_CALL | registerThread () override |
virtual void SAL_CALL | revokeThread () override |
virtual void SAL_CALL | disposing (css::lang::EventObject const &rSource) override |
virtual void SAL_CALL | elementInserted (css::container::ContainerEvent const &rEvent) override |
virtual void SAL_CALL | elementRemoved (css::container::ContainerEvent const &rEvent) override |
virtual void SAL_CALL | elementReplaced (css::container::ContainerEvent const &rEvent) override |
Private Member Functions | |
JavaVirtualMachine (JavaVirtualMachine const &)=delete | |
void | operator= (const JavaVirtualMachine &)=delete |
virtual | ~JavaVirtualMachine () override |
virtual void SAL_CALL | disposing () override |
void | registerConfigChangesListener () |
void | setINetSettingsInVM (bool set_reset) |
void | setUpUnoVirtualMachine (JNIEnv *environment) |
void | handleJniException (JNIEnv *environment) |
Private Attributes | |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
bool | m_bDisposed |
rtl::Reference< jvmaccess::VirtualMachine > | m_xVirtualMachine |
rtl::Reference< jvmaccess::UnoVirtualMachine > | m_xUnoVirtualMachine |
JavaVM * | m_pJavaVm |
css::uno::Reference< css::container::XContainer > | m_xInetConfiguration |
css::uno::Reference< css::container::XContainer > | m_xJavaConfiguration |
osl::ThreadData | m_aAttachGuards |
Private Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
Definition at line 55 of file javavm.hxx.
|
explicit |
Definition at line 473 of file javavm.cxx.
References m_aMutex, m_bDisposed, and m_xContext.
|
privatedelete |
|
overrideprivatevirtual |
Definition at line 1123 of file javavm.cxx.
References m_xInetConfiguration, and m_xJavaConfiguration.
|
overrideprivatevirtual |
Definition at line 1147 of file javavm.cxx.
References cppu::BaseMutex::m_aMutex, m_bDisposed, m_xInetConfiguration, and m_xJavaConfiguration.
|
overridevirtual |
Definition at line 873 of file javavm.cxx.
References cppu::BaseMutex::m_aMutex, m_xInetConfiguration, and m_xJavaConfiguration.
|
overridevirtual |
Definition at line 882 of file javavm.cxx.
|
overridevirtual |
Definition at line 886 of file javavm.cxx.
|
overridevirtual |
Definition at line 895 of file javavm.cxx.
References cppu::getCaughtException(), jvmaccess::VirtualMachine::AttachGuard::getEnvironment(), cppu::BaseMutex::m_aMutex, m_xUnoVirtualMachine, n, setINetSettingsInVM(), sName, and value.
|
overridevirtual |
Definition at line 539 of file javavm.cxx.
|
overridevirtual |
Definition at line 557 of file javavm.cxx.
References cppu::getCaughtException(), jvmaccess::VirtualMachine::AttachGuard::getEnvironment(), stoc_javavm::JVM::getProperties(), i, comphelper::IsContextFlagActive(), JFW_E_INVALID_SETTINGS, JFW_E_JAVA_DISABLED, JFW_E_NEED_RESTART, JFW_E_NO_JAVA_FOUND, JFW_E_NO_SELECT, JFW_E_NONE, JFW_E_RUNNING_JVM, JFW_E_VM_CREATION_FAILED, jfw_existJRE(), jfw_findAndSelectJRE(), jfw_getSelectedJRE(), JFW_REQUIRE_NEEDRESTART, jfw_startVM(), cppu::BaseMutex::m_aMutex, m_bDisposed, m_pJavaVm, m_xContext, m_xUnoVirtualMachine, m_xVirtualMachine, props, registerConfigChangesListener(), and setUpUnoVirtualMachine().
|
overridevirtual |
Definition at line 551 of file javavm.cxx.
|
private |
Definition at line 1464 of file javavm.cxx.
Referenced by setUpUnoVirtualMachine().
|
overridevirtual |
Definition at line 483 of file javavm.cxx.
References cppu::getCaughtException(), cppu::BaseMutex::m_aMutex, m_bDisposed, m_xUnoVirtualMachine, and m_xVirtualMachine.
|
overridevirtual |
Definition at line 806 of file javavm.cxx.
References m_aAttachGuards, cppu::BaseMutex::m_aMutex, and m_bDisposed.
|
overridevirtual |
Definition at line 788 of file javavm.cxx.
References JFW_E_NONE, jfw_getEnabled(), cppu::BaseMutex::m_aMutex, and m_bDisposed.
|
overridevirtual |
Definition at line 779 of file javavm.cxx.
References cppu::BaseMutex::m_aMutex, m_bDisposed, and m_xUnoVirtualMachine.
|
privatedelete |
|
private |
Definition at line 1171 of file javavm.cxx.
References aArguments, comphelper::InitAnyPropertySequence(), m_xContext, m_xInetConfiguration, m_xJavaConfiguration, and SAL_INFO.
Referenced by getJavaVM().
|
overridevirtual |
Definition at line 819 of file javavm.cxx.
References cppu::getCaughtException(), m_aAttachGuards, cppu::BaseMutex::m_aMutex, m_bDisposed, and m_xUnoVirtualMachine.
|
overridevirtual |
Definition at line 852 of file javavm.cxx.
References m_aAttachGuards, cppu::BaseMutex::m_aMutex, m_bDisposed, and m_xUnoVirtualMachine.
|
private |
Definition at line 1221 of file javavm.cxx.
References jvmaccess::VirtualMachine::AttachGuard::getEnvironment(), stoc_javavm::JVM::getProperties(), index, cppu::BaseMutex::m_aMutex, m_xContext, and m_xUnoVirtualMachine.
Referenced by elementReplaced().
|
private |
Definition at line 1350 of file javavm.cxx.
References args, base, cppu::getCaughtException(), handleJniException(), m_xContext, m_xUnoVirtualMachine, m_xVirtualMachine, and jvmaccess::ClassPath::translateToUrls().
Referenced by getJavaVM().
|
overridevirtual |
Definition at line 545 of file javavm.cxx.
References cppu::supportsService().
|
private |
Definition at line 140 of file javavm.hxx.
Referenced by isThreadAttached(), registerThread(), and revokeThread().
|
private |
Definition at line 128 of file javavm.hxx.
Referenced by disposing(), getJavaVM(), initialize(), isThreadAttached(), isVMEnabled(), isVMStarted(), registerThread(), and revokeThread().
|
private |
Definition at line 131 of file javavm.hxx.
Referenced by getJavaVM().
|
private |
Definition at line 125 of file javavm.hxx.
Referenced by getJavaVM(), registerConfigChangesListener(), setINetSettingsInVM(), and setUpUnoVirtualMachine().
|
private |
Definition at line 136 of file javavm.hxx.
Referenced by disposing(), registerConfigChangesListener(), and ~JavaVirtualMachine().
|
private |
Definition at line 138 of file javavm.hxx.
Referenced by disposing(), registerConfigChangesListener(), and ~JavaVirtualMachine().
|
private |
Definition at line 130 of file javavm.hxx.
Referenced by elementReplaced(), getJavaVM(), initialize(), isVMStarted(), registerThread(), revokeThread(), setINetSettingsInVM(), and setUpUnoVirtualMachine().
|
private |
Definition at line 129 of file javavm.hxx.
Referenced by getJavaVM(), initialize(), and setUpUnoVirtualMachine().