LibreOffice Module jvmfwk (master) 1
|
Namespaces | |
namespace | BootParams |
Classes | |
class | CNodeJavaInfo |
represents the settings saved in the /java/javaInfo element. More... | |
class | CXmlCharPtr |
class | CXmlDocPtr |
class | CXPathContextPtr |
class | CXPathObjectPtr |
class | FrameworkException |
class | MergedSettings |
merges the settings for shared, user and installation during construction. More... | |
class | NodeJava |
this class represents the java settings based on a particular settings file. More... | |
class | VendorSettings |
struct | VersionInfo |
Enumerations | |
enum | JFW_MODE { JFW_MODE_APPLICATION , JFW_MODE_DIRECT } |
enum | FileStatus { FILE_OK , FILE_DOES_NOT_EXIST , FILE_INVALID } |
Functions | |
static OString | getElement (OString const &docPath, xmlChar const *pathExpression) |
OString | getElementUpdated () |
gets the value of the updated element from the javavendors.xml. More... | |
void | createSettingsStructure (xmlDoc *document, bool *bNeedsSave) |
create the child elements within the root structure for each platform. More... | |
JFW_MODE | getMode () |
OUString | getApplicationClassPath () |
OString | makeClassPathOption (std::u16string_view sUserClassPath) |
creates the -Djava.class.path option with the complete classpath, including the paths which are set by UNO_JAVA_JFW_CLASSPATH_URLS. More... | |
OString | getUserSettingsPath () |
Get the system path to the javasettings.xml Converts the URL returned from getUserSettingsURL to a Systempath. More... | |
OString | getSharedSettingsPath () |
Returns the system path of the share settings file. More... | |
OString | getSettingsPath (const OUString &sURL) |
OString | getVendorSettingsPath () |
void | setJavaSelected () |
Called from writeJavaInfoData. More... | |
bool | wasJavaSelectedInSameProcess () |
Determines if the currently selected Java was set in this process. More... | |
const rtl::Bootstrap * | Bootstrap () |
provides a bootstrap class which already knows the values from the jvmfkwrc file. More... | |
osl::Mutex & | FwkMutex () |
rtl::ByteSequence | encodeBase16 (const rtl::ByteSequence &rawData) |
rtl::ByteSequence | decodeBase16 (const rtl::ByteSequence &data) |
OUString | getDirFromFile (std::u16string_view usFilePath) |
OUString | getLibraryLocation () |
Returns the file URL of the directory where the framework library (this library) resides. More... | |
jfw::FileStatus | checkFileURL (const OUString &path) |
checks if the URL is a file. More... | |
Variables | |
static bool | g_bJavaSet = false |
enum jfw::FileStatus |
Enumerator | |
---|---|
FILE_OK | |
FILE_DOES_NOT_EXIST | |
FILE_INVALID |
Definition at line 51 of file fwkutil.hxx.
enum jfw::JFW_MODE |
Enumerator | |
---|---|
JFW_MODE_APPLICATION | |
JFW_MODE_DIRECT |
Definition at line 75 of file fwkbase.hxx.
const rtl::Bootstrap * jfw::Bootstrap | ( | ) |
provides a bootstrap class which already knows the values from the jvmfkwrc file.
Definition at line 47 of file fwkutil.cxx.
References bootstrap(), Bootstrap(), getLibraryLocation(), SAL_CONFIGFILE, and SAL_INFO.
Referenced by Bootstrap(), jfw::BootParams::getClasspath(), jfw::BootParams::getClasspathUrls(), jfw::BootParams::getJREHome(), getMode(), jfw::BootParams::getVendorSettings(), and jfw::BootParams::getVMParameters().
FileStatus jfw::checkFileURL | ( | const OUString & | path | ) |
checks if the URL is a file.
If it is a link to a file than it is resolved. Assuming that the argument represents a relative URL then FILE_INVALID is returned.
Errors | occurred during determining if the file exists |
Definition at line 158 of file fwkutil.cxx.
References FILE_DOES_NOT_EXIST, FILE_INVALID, and FILE_OK.
Referenced by jfw::BootParams::getVendorSettings(), and jfw::NodeJava::load().
void jfw::createSettingsStructure | ( | xmlDoc * | document, |
bool * | bNeedsSave | ||
) |
create the child elements within the root structure for each platform.
bNeedsSave | [out]If true then the respective structure of elements was added and the document needs to be saved. |
Definition at line 85 of file elements.cxx.
References JFW_E_ERROR, and NS_SCHEMA_INSTANCE.
Referenced by jfw::NodeJava::prepareSettingsDocument().
rtl::ByteSequence jfw::decodeBase16 | ( | const rtl::ByteSequence & | data | ) |
Definition at line 100 of file fwkutil.cxx.
Referenced by jfw::CNodeJavaInfo::loadFromNode().
rtl::ByteSequence jfw::encodeBase16 | ( | const rtl::ByteSequence & | rawData | ) |
Definition at line 72 of file fwkutil.cxx.
References i.
Referenced by jfw::CNodeJavaInfo::writeToNode().
osl::Mutex & jfw::FwkMutex | ( | ) |
Definition at line 65 of file fwkutil.cxx.
Referenced by jfw::MergedSettings::getVmParametersArray(), jfw_addJRELocation(), jfw_findAllJREs(), jfw_findAndSelectJRE(), jfw_getEnabled(), jfw_getJavaInfoByPath(), jfw_getSelectedJRE(), jfw_getUserClassPath(), jfw_getVMParameters(), jfw_isVMRunning(), jfw_lock(), jfw_setEnabled(), jfw_setSelectedJRE(), jfw_setUserClassPath(), jfw_setVMParameters(), jfw_startVM(), and jfw_unlock().
OUString jfw::getApplicationClassPath | ( | ) |
Definition at line 416 of file fwkbase.cxx.
References jfw::BootParams::getClasspathUrls(), getMode(), o3tl::getToken(), index, JFW_MODE_APPLICATION, SAL_PATHSEPARATOR, and o3tl::trim().
Referenced by makeClassPathOption().
OUString jfw::getDirFromFile | ( | std::u16string_view | usFilePath | ) |
Definition at line 139 of file fwkutil.cxx.
References index.
Referenced by jfw::NodeJava::createSettingsDocument(), and getLibraryLocation().
|
static |
Definition at line 49 of file elements.cxx.
References JFW_E_ERROR, and NS_JAVA_FRAMEWORK.
Referenced by getElementUpdated().
OString jfw::getElementUpdated | ( | ) |
gets the value of the updated element from the javavendors.xml.
Definition at line 79 of file elements.cxx.
References getElement(), and getVendorSettingsPath().
Referenced by jfw_getSelectedJRE(), jfw_startVM(), and jfw::CNodeJavaInfo::writeToNode().
OUString jfw::getLibraryLocation | ( | ) |
Returns the file URL of the directory where the framework library (this library) resides.
Definition at line 145 of file fwkutil.cxx.
References getDirFromFile(), getLibraryLocation(), and JFW_E_ERROR.
Referenced by Bootstrap(), getLibraryLocation(), and jfw::BootParams::getVendorSettings().
JFW_MODE jfw::getMode | ( | ) |
Definition at line 376 of file fwkbase.cxx.
References Bootstrap(), JFW_MODE_APPLICATION, JFW_MODE_DIRECT, UNO_JAVA_JFW_CLASSPATH, UNO_JAVA_JFW_ENV_CLASSPATH, UNO_JAVA_JFW_ENV_JREHOME, UNO_JAVA_JFW_JREHOME, and UNO_JAVA_JFW_PARAMETER.
Referenced by getApplicationClassPath(), jfw::BootParams::getJREHome(), jfw_addJRELocation(), jfw_findAllJREs(), jfw_findAndSelectJRE(), jfw_getEnabled(), jfw_getSelectedJRE(), jfw_getUserClassPath(), jfw_getVMParameters(), jfw_setEnabled(), jfw_setSelectedJRE(), jfw_setUserClassPath(), jfw_setVMParameters(), jfw_startVM(), and jfw::NodeJava::NodeJava().
OString jfw::getSettingsPath | ( | const OUString & | sURL | ) |
Definition at line 486 of file fwkbase.cxx.
References JFW_E_ERROR, and OUStringToOString().
Referenced by getSharedSettingsPath(), and getUserSettingsPath().
OString jfw::getSharedSettingsPath | ( | ) |
Returns the system path of the share settings file.
Returns a valid string or throws an exception.
FrameworkException |
Definition at line 481 of file fwkbase.cxx.
References getSettingsPath(), and jfw::BootParams::getSharedData().
Referenced by jfw::NodeJava::getSettingsPath().
OString jfw::getUserSettingsPath | ( | ) |
Get the system path to the javasettings.xml Converts the URL returned from getUserSettingsURL to a Systempath.
An empty string is returned if the file does not exist.
FrameworkException |
Definition at line 476 of file fwkbase.cxx.
References getSettingsPath(), and jfw::BootParams::getUserData().
Referenced by jfw::NodeJava::getSettingsPath().
OString jfw::getVendorSettingsPath | ( | ) |
Definition at line 499 of file fwkbase.cxx.
References jfw::BootParams::getVendorSettings(), and getVendorSettingsPath().
Referenced by getElementUpdated(), getVendorSettingsPath(), and jfw::VendorSettings::VendorSettings().
OString jfw::makeClassPathOption | ( | std::u16string_view | sUserClassPath | ) |
creates the -Djava.class.path option with the complete classpath, including the paths which are set by UNO_JAVA_JFW_CLASSPATH_URLS.
Definition at line 446 of file fwkbase.cxx.
References getApplicationClassPath(), OUStringToOString(), and SAL_PATHSEPARATOR.
Referenced by jfw_startVM().
void jfw::setJavaSelected | ( | ) |
Called from writeJavaInfoData.
It sets the process identifier. When java is to be started, then the current id is compared to the one set by this function. If they are identical then the Java was selected in the same process. If that Java needs a prepared environment, such as a LD_LIBRARY_PATH, then it must not be started in this process.
Definition at line 504 of file fwkbase.cxx.
References g_bJavaSet.
Referenced by jfw_findAndSelectJRE(), and jfw_setSelectedJRE().
bool jfw::wasJavaSelectedInSameProcess | ( | ) |
Determines if the currently selected Java was set in this process.
Definition at line 509 of file fwkbase.cxx.
References g_bJavaSet.
Referenced by jfw_startVM().
|
static |
Definition at line 45 of file fwkbase.cxx.
Referenced by setJavaSelected(), and wasJavaSelectedInSameProcess().