diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-06-20 18:26:11 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-06-20 18:26:11 +0200 |
commit | dc795cbd2dcb50e555945a91925616c7b3e58ee9 (patch) | |
tree | e4bcd81746105958b18e6a8ee7b00c1b8f72646e /scripting | |
parent | 3258c4f7b79ceedace3b4bdc88a818b45c7593ca (diff) |
Make Linguistic SDK example use __getComponentFactory
...instead of legacy __getServiceFactory. This fixes a subtle bug: When these
Java extensions are live-deployed, they are offloaded to an additional uno
process. Their __getServiceFactory methods were called with the uno process
(component context's) service manager, which they stored away for later use in
OneInstanceFactory.createInstance. So even if later on an instance was created
with the main LO process's component context, the uno process's component
context would be used to instantiate the (C++)
com.sun.star.linguistic2.LinguProperties service (in the uno process!), and that
happens to internally use comphelper::getProcessServiceFactory, which would be
null in the uno process,
comphelper::getProcessServiceFactory
comphelper::getProcessComponentContext
(anonymous namespace)::getConfigurationProvider
utl::ConfigManager::acquireTree
utl::ConfigManager::addConfigItem
utl::ConfigItem::ConfigItem
SvtLinguConfigItem::SvtLinguConfigItem
SvtLinguConfig::GetConfigItem
SvtLinguConfig::GetConfigItem
SvtLinguConfig::GetProperty
LinguProps::getPropertyValue
gcc3::callVirtualMethod
...
Change-Id: Ib6f5a5dd6d0adbbe14d60aaff3a8b6ba24235d11
Diffstat (limited to 'scripting')
0 files changed, 0 insertions, 0 deletions