20#ifndef INCLUDED_STOC_SOURCE_JAVAVM_JAVAVM_HXX
21#define INCLUDED_STOC_SOURCE_JAVAVM_JAVAVM_HXX
24#pragma clang diagnostic push
25#pragma clang diagnostic ignored "-Wunknown-attributes"
29#pragma clang diagnostic pop
32#include <com/sun/star/container/XContainerListener.hpp>
33#include <com/sun/star/lang/XInitialization.hpp>
34#include <com/sun/star/java/XJavaThreadRegister_11.hpp>
35#include <com/sun/star/java/XJavaVM.hpp>
36#include <com/sun/star/lang/XServiceInfo.hpp>
37#include <com/sun/star/uno/Reference.hxx>
40#include <osl/thread.hxx>
42#include <rtl/ustring.hxx>
45 namespace container {
class XContainer; }
46 namespace uno {
class XComponentContext; }
49 class UnoVirtualMachine;
57 public cppu::WeakComponentImplHelper<
58 css::lang::XInitialization, css::lang::XServiceInfo, css::java::XJavaVM,
59 css::java::XJavaThreadRegister_11, css::container::XContainerListener>
64 css::uno::XComponentContext > xContext);
68 initialize(css::uno::Sequence< css::uno::Any >
const &
77 virtual css::uno::Sequence< OUString > SAL_CALL
81 virtual css::uno::Any SAL_CALL
82 getJavaVM(css::uno::Sequence< sal_Int8 >
const & rProcessId)
override;
97 disposing(css::lang::EventObject
const & rSource)
override;
100 elementInserted(css::container::ContainerEvent
const & rEvent)
override;
102 virtual void SAL_CALL
103 elementRemoved(css::container::ContainerEvent
const & rEvent)
override;
105 virtual void SAL_CALL
106 elementReplaced(css::container::ContainerEvent
const & rEvent)
override;
114 virtual void SAL_CALL
disposing()
override;
124 css::uno::Reference< css::uno::XComponentContext >
135 css::uno::Reference< css::container::XContainer >
137 css::uno::Reference< css::container::XContainer >
virtual void SAL_CALL elementInserted(css::container::ContainerEvent const &rEvent) override
virtual sal_Bool SAL_CALL isThreadAttached() override
virtual void SAL_CALL elementReplaced(css::container::ContainerEvent const &rEvent) override
virtual void SAL_CALL revokeThread() override
virtual ~JavaVirtualMachine() override
void handleJniException(JNIEnv *environment)
JavaVirtualMachine(css::uno::Reference< css::uno::XComponentContext > xContext)
virtual void SAL_CALL elementRemoved(css::container::ContainerEvent const &rEvent) override
virtual void SAL_CALL registerThread() override
rtl::Reference< jvmaccess::VirtualMachine > m_xVirtualMachine
css::uno::Reference< css::container::XContainer > m_xJavaConfiguration
rtl::Reference< jvmaccess::UnoVirtualMachine > m_xUnoVirtualMachine
JavaVirtualMachine(JavaVirtualMachine const &)=delete
void registerConfigChangesListener()
virtual sal_Bool SAL_CALL supportsService(OUString const &rServiceName) override
virtual OUString SAL_CALL getImplementationName() override
css::uno::Reference< css::uno::XComponentContext > m_xContext
virtual css::uno::Any SAL_CALL getJavaVM(css::uno::Sequence< sal_Int8 > const &rProcessId) override
virtual sal_Bool SAL_CALL isVMEnabled() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
void operator=(const JavaVirtualMachine &)=delete
virtual void SAL_CALL disposing() override
css::uno::Reference< css::container::XContainer > m_xInetConfiguration
void setINetSettingsInVM(bool set_reset)
osl::ThreadData m_aAttachGuards
virtual void SAL_CALL initialize(css::uno::Sequence< css::uno::Any > const &rArguments) override
virtual sal_Bool SAL_CALL isVMStarted() override
void setUpUnoVirtualMachine(JNIEnv *environment)