Issue 55177 - OOoBean: support for simple bootstrap
Summary: OOoBean: support for simple bootstrap
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: joachim.lingner
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-28 12:01 UTC by joachim.lingner
Modified: 2013-02-24 21:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description joachim.lingner 2005-09-28 12:01:53 UTC
An application can use the com.sun.star.lib.loader.Loader class from the ODK to
load the actual aplication. the main class then uses 
                com.sun.star.comp.helper.Bootstrap.bootstrap(); to get the context.

This context could be passed on to the OOoBean.

See the example 
SDK\examples\DevelopersGuide\ProfUNO\SimpleBootstrap_java 

The advantage is that the user does not have to set the class path to all the
office jars.
Comment 1 joachim.lingner 2005-09-28 16:43:44 UTC
The OOoBean examines in a separate thread if the connection still exists and if
it is broken then it disposes the LocaleOfficeConnection which in turn notifies
listeners. If OOoBean uses an "external" XComponentContext then the application
should register itself as listener. This can be done by
LocalOfficeConnection.addEventListener
Comment 2 joachim.lingner 2005-09-29 09:48:32 UTC
It may not be necessary to change OOoBean. LocalOfficeConnection.getProgramPath
calls
// find soffice executable relative to this class's class loader:
File path = NativeLibraryLoader.getResource(
		LocalOfficeConnection.class.getClassLoader(), aExec);

Because the class loader is the one that loaded the application and knows the
location of the jars, it should also find soffice. The implementation of
NativeLibraryLoader.getResource calls getResource of the class loader. 
It may be necessary to modify the class loader. It is contained
odk/source/com/sun/star/lib/loader/Loader.java, class CustomClassLoader
Comment 3 joachim.lingner 2006-05-19 08:33:01 UTC
.
Comment 4 joachim.lingner 2008-05-08 13:00:42 UTC
I do not think this is needed right now -> closing.
Comment 5 joachim.lingner 2008-05-08 13:01:01 UTC
.