LibreOffice Module stoc (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
stoc_javavm::JavaVirtualMachine Class Reference

#include <javavm.hxx>

Inheritance diagram for stoc_javavm::JavaVirtualMachine:
[legend]
Collaboration diagram for stoc_javavm::JavaVirtualMachine:
[legend]

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::VirtualMachinem_xVirtualMachine
 
rtl::Reference< jvmaccess::UnoVirtualMachinem_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
 

Detailed Description

Definition at line 55 of file javavm.hxx.

Constructor & Destructor Documentation

◆ JavaVirtualMachine() [1/2]

JavaVirtualMachine::JavaVirtualMachine ( css::uno::Reference< css::uno::XComponentContext >  xContext)
explicit

Definition at line 473 of file javavm.cxx.

References m_aMutex, m_bDisposed, and m_xContext.

◆ JavaVirtualMachine() [2/2]

stoc_javavm::JavaVirtualMachine::JavaVirtualMachine ( JavaVirtualMachine const &  )
privatedelete

◆ ~JavaVirtualMachine()

JavaVirtualMachine::~JavaVirtualMachine ( )
overrideprivatevirtual

Definition at line 1123 of file javavm.cxx.

References m_xInetConfiguration, and m_xJavaConfiguration.

Member Function Documentation

◆ disposing() [1/2]

void SAL_CALL JavaVirtualMachine::disposing ( )
overrideprivatevirtual

◆ disposing() [2/2]

void SAL_CALL JavaVirtualMachine::disposing ( css::lang::EventObject const &  rSource)
overridevirtual

Definition at line 873 of file javavm.cxx.

References cppu::BaseMutex::m_aMutex, m_xInetConfiguration, and m_xJavaConfiguration.

◆ elementInserted()

void SAL_CALL JavaVirtualMachine::elementInserted ( css::container::ContainerEvent const &  rEvent)
overridevirtual

Definition at line 882 of file javavm.cxx.

◆ elementRemoved()

void SAL_CALL JavaVirtualMachine::elementRemoved ( css::container::ContainerEvent const &  rEvent)
overridevirtual

Definition at line 886 of file javavm.cxx.

◆ elementReplaced()

void SAL_CALL JavaVirtualMachine::elementReplaced ( css::container::ContainerEvent const &  rEvent)
overridevirtual

◆ getImplementationName()

OUString SAL_CALL JavaVirtualMachine::getImplementationName ( )
overridevirtual

Definition at line 539 of file javavm.cxx.

◆ getJavaVM()

css::uno::Any SAL_CALL JavaVirtualMachine::getJavaVM ( css::uno::Sequence< sal_Int8 > const &  rProcessId)
overridevirtual

◆ getSupportedServiceNames()

css::uno::Sequence< OUString > SAL_CALL JavaVirtualMachine::getSupportedServiceNames ( )
overridevirtual

Definition at line 551 of file javavm.cxx.

◆ handleJniException()

void JavaVirtualMachine::handleJniException ( JNIEnv *  environment)
private

Definition at line 1464 of file javavm.cxx.

Referenced by setUpUnoVirtualMachine().

◆ initialize()

void SAL_CALL JavaVirtualMachine::initialize ( css::uno::Sequence< css::uno::Any > const &  rArguments)
overridevirtual

◆ isThreadAttached()

sal_Bool SAL_CALL JavaVirtualMachine::isThreadAttached ( )
overridevirtual

Definition at line 806 of file javavm.cxx.

References m_aAttachGuards, cppu::BaseMutex::m_aMutex, and m_bDisposed.

◆ isVMEnabled()

sal_Bool SAL_CALL JavaVirtualMachine::isVMEnabled ( )
overridevirtual

Definition at line 788 of file javavm.cxx.

References JFW_E_NONE, jfw_getEnabled(), cppu::BaseMutex::m_aMutex, and m_bDisposed.

◆ isVMStarted()

sal_Bool SAL_CALL JavaVirtualMachine::isVMStarted ( )
overridevirtual

Definition at line 779 of file javavm.cxx.

References cppu::BaseMutex::m_aMutex, m_bDisposed, and m_xUnoVirtualMachine.

◆ operator=()

void stoc_javavm::JavaVirtualMachine::operator= ( const JavaVirtualMachine )
privatedelete

◆ registerConfigChangesListener()

void JavaVirtualMachine::registerConfigChangesListener ( )
private

◆ registerThread()

void SAL_CALL JavaVirtualMachine::registerThread ( )
overridevirtual

◆ revokeThread()

void SAL_CALL JavaVirtualMachine::revokeThread ( )
overridevirtual

◆ setINetSettingsInVM()

void JavaVirtualMachine::setINetSettingsInVM ( bool  set_reset)
private

◆ setUpUnoVirtualMachine()

void JavaVirtualMachine::setUpUnoVirtualMachine ( JNIEnv *  environment)
private

◆ supportsService()

sal_Bool SAL_CALL JavaVirtualMachine::supportsService ( OUString const &  rServiceName)
overridevirtual

Definition at line 545 of file javavm.cxx.

References cppu::supportsService().

Member Data Documentation

◆ m_aAttachGuards

osl::ThreadData stoc_javavm::JavaVirtualMachine::m_aAttachGuards
private

Definition at line 140 of file javavm.hxx.

Referenced by isThreadAttached(), registerThread(), and revokeThread().

◆ m_bDisposed

bool stoc_javavm::JavaVirtualMachine::m_bDisposed
private

◆ m_pJavaVm

JavaVM* stoc_javavm::JavaVirtualMachine::m_pJavaVm
private

Definition at line 131 of file javavm.hxx.

Referenced by getJavaVM().

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > stoc_javavm::JavaVirtualMachine::m_xContext
private

◆ m_xInetConfiguration

css::uno::Reference< css::container::XContainer > stoc_javavm::JavaVirtualMachine::m_xInetConfiguration
private

Definition at line 136 of file javavm.hxx.

Referenced by disposing(), registerConfigChangesListener(), and ~JavaVirtualMachine().

◆ m_xJavaConfiguration

css::uno::Reference< css::container::XContainer > stoc_javavm::JavaVirtualMachine::m_xJavaConfiguration
private

Definition at line 138 of file javavm.hxx.

Referenced by disposing(), registerConfigChangesListener(), and ~JavaVirtualMachine().

◆ m_xUnoVirtualMachine

rtl::Reference< jvmaccess::UnoVirtualMachine > stoc_javavm::JavaVirtualMachine::m_xUnoVirtualMachine
private

◆ m_xVirtualMachine

rtl::Reference< jvmaccess::VirtualMachine > stoc_javavm::JavaVirtualMachine::m_xVirtualMachine
private

Definition at line 129 of file javavm.hxx.

Referenced by getJavaVM(), initialize(), and setUpUnoVirtualMachine().


The documentation for this class was generated from the following files: