LibreOffice Module jvmfwk (master) 1
|
merges the settings for shared, user and installation during construction. More...
#include <elements.hxx>
Public Member Functions | |
MergedSettings () | |
~MergedSettings () | |
bool | getEnabled () const |
the default is true. More... | |
const OUString & | getUserClassPath () const |
::std::vector< OString > | getVmParametersUtf8 () const |
std::unique_ptr< JavaInfo > | createJavaInfo () const |
returns a JavaInfo structure representing the node /java/javaInfo. More... | |
OString const & | getJavaInfoAttrVendorUpdate () const |
returns the value of the attribute /java/javaInfo[@vendorUpdate]. More... | |
void | getVmParametersArray (std::vector< OUString > *parParameters) const |
const ::std::vector< OUString > & | getJRELocations () const |
Private Member Functions | |
MergedSettings & | operator= (MergedSettings const &)=delete |
MergedSettings (MergedSettings const &)=delete | |
void | merge (const NodeJava &share, const NodeJava &user) |
Private Attributes | |
bool | m_bEnabled |
OUString | m_sClassPath |
::std::vector< OUString > | m_vmParams |
::std::vector< OUString > | m_JRELocations |
CNodeJavaInfo | m_javaInfo |
merges the settings for shared, user and installation during construction.
The class uses a simple merge mechanism for the javasettings.xml files in share and user. The following elements completely overwrite the corresponding elements from share: /java/enabled /java/userClassPath /java/vmParameters /java/jreLocations /java/javaInfo
In case of an installation, the shared and user settings are completely disregarded.
The locations of the different settings files is obtained through the bootstrap variables: UNO_JAVA_JFW_USER_DATA UNO_JAVA_JFW_SHARED_DATA
The class also determines useful default values for settings which have not been made.
Definition at line 265 of file elements.hxx.
|
privatedelete |
jfw::MergedSettings::MergedSettings | ( | ) |
Definition at line 894 of file elements.cxx.
References jfw::NodeJava::load(), merge(), jfw::NodeJava::SHARED, and jfw::NodeJava::USER.
jfw::MergedSettings::~MergedSettings | ( | ) |
Definition at line 904 of file elements.cxx.
std::unique_ptr< JavaInfo > jfw::MergedSettings::createJavaInfo | ( | ) | const |
returns a JavaInfo structure representing the node /java/javaInfo.
Every time a new JavaInfo structure is created which needs to be freed by the caller. If both, user and share settings are nil, then NULL is returned.
Definition at line 950 of file elements.cxx.
References m_javaInfo, and jfw::CNodeJavaInfo::makeJavaInfo().
Referenced by jfw_getSelectedJRE(), and jfw_startVM().
|
inline |
the default is true.
Definition at line 289 of file elements.hxx.
References m_bEnabled.
Referenced by jfw_getEnabled(), jfw_setEnabled(), and jfw_startVM().
|
inline |
returns the value of the attribute /java/javaInfo[@vendorUpdate].
Definition at line 303 of file elements.hxx.
References m_javaInfo, and jfw::CNodeJavaInfo::sAttrVendorUpdate.
Referenced by jfw_getSelectedJRE(), and jfw_startVM().
|
inline |
Definition at line 316 of file elements.hxx.
References m_JRELocations.
Referenced by jfw_findAllJREs(), and jfw_findAndSelectJRE().
|
inline |
Definition at line 291 of file elements.hxx.
References m_sClassPath.
Referenced by jfw_getUserClassPath(), and jfw_startVM().
void jfw::MergedSettings::getVmParametersArray | ( | std::vector< OUString > * | parParameters | ) | const |
Definition at line 960 of file elements.cxx.
References jfw::FwkMutex(), and m_vmParams.
Referenced by jfw_getVMParameters().
std::vector< OString > jfw::MergedSettings::getVmParametersUtf8 | ( | ) | const |
Definition at line 939 of file elements.cxx.
References m_vmParams, and OUStringToOString().
Referenced by jfw_startVM().
Definition at line 908 of file elements.cxx.
References jfw::NodeJava::getEnabled(), jfw::NodeJava::getJavaInfo(), jfw::NodeJava::getJRELocations(), jfw::NodeJava::getUserClassPath(), jfw::NodeJava::getVmParameters(), m_bEnabled, m_javaInfo, m_JRELocations, m_sClassPath, and m_vmParams.
Referenced by MergedSettings().
|
privatedelete |
|
private |
Definition at line 273 of file elements.hxx.
Referenced by getEnabled(), and merge().
|
private |
Definition at line 281 of file elements.hxx.
Referenced by createJavaInfo(), getJavaInfoAttrVendorUpdate(), and merge().
|
private |
Definition at line 279 of file elements.hxx.
Referenced by getJRELocations(), and merge().
|
private |
Definition at line 275 of file elements.hxx.
Referenced by getUserClassPath(), and merge().
|
private |
Definition at line 277 of file elements.hxx.
Referenced by getVmParametersArray(), getVmParametersUtf8(), and merge().