[EMAIL PROTECTED] wrote:
   *Type*       recommended
*Title*         Java UNO Class Loader
*Posted by*     [EMAIL PROTECTED]
*Affected*      ,.
*Effective from*        SRC680m111



/*Summary*/


+ unoloader.jar:
+ class com.sun.star.lib.unoloader.UnoLoader (external)
+ class com.sun.star.lib.unoloader.UnoClassLoader (internal)

[...]

/*Description*/

To make the Java UNO runtime more robust and efficient, the UNO
component class loading has been redesigned in a compatible way: Instead of loading all Java UNO components into one class loader, each
component is now loaded with its own class loader, with one
UnoClassLoader at the root that takes care of loading all Java classes
representing UNO types in such a way that they are available across
the whole Java UNO runtime environment.  These changes take effect in
the stand-alone URE, but not yet in OOo (i.e., OOo continues to put
all Java UNO components on the JVM's CLASSPATH).

A number of changes were necessary:

- There is a new unoloader.jar (from CVS module ridljar) that contains
the new UnoClassLoader (which is private) and a helper class UnoLoader
(which is public).  To make the changes to the Java UNO runtime class
loading effective, this JAR must be loaded first, and everything else
must be loaded through the UnoClassLoader.  This has not yet been
incorporated into the "Transparent Use of Office UNO Components"
<http://udk.openoffice.org/common/man/spec/transparentofficecomponents.html>
(which also is not yet necessary, as OOo has not yet been adapted to
those changes, see above).  The Makefile in the new uretest.zip
contains an example of how to set up a Java application that
bootstraps through unoloader.jar.

On CWS tbe25, UnoClassLoader has been extended with an additional ctor that takes an array of URLs where (Java classes representing) extra UNO types can be located. Needed to set up an OOo-specific UnoClassLoader that knows unoil.jar.

[...]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to