diff options
author | Oliver Bolte <obo@openoffice.org> | 2005-07-07 09:57:25 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2005-07-07 09:57:25 +0000 |
commit | f11697ce13004b53c2ce5c0a142cb4c181f7f9f0 (patch) | |
tree | f4220dff206f4697f99dba3261ac02691cde68ad /javaunohelper | |
parent | bf4a33a31680c47fd881b8d1c671cabdc8bc1485 (diff) |
INTEGRATION: CWS sb33 (1.5.8); FILE MERGED
2005/06/30 16:50:12 sb 1.5.8.1: #120220# Adapted to changed uno_getEnvironment(..., java, pContext).
Diffstat (limited to 'javaunohelper')
-rw-r--r-- | javaunohelper/com/sun/star/comp/helper/SharedLibraryLoader.java | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/javaunohelper/com/sun/star/comp/helper/SharedLibraryLoader.java b/javaunohelper/com/sun/star/comp/helper/SharedLibraryLoader.java index c2be8792827b..a0afa3a8ea51 100644 --- a/javaunohelper/com/sun/star/comp/helper/SharedLibraryLoader.java +++ b/javaunohelper/com/sun/star/comp/helper/SharedLibraryLoader.java @@ -2,9 +2,9 @@ * * $RCSfile: SharedLibraryLoader.java,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: pjunck $ $Date: 2004-11-03 09:07:18 $ + * last change: $Author: obo $ $Date: 2005-07-07 10:57:25 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -92,10 +92,12 @@ public class SharedLibraryLoader { } private static native boolean component_writeInfo( - String libName, XMultiServiceFactory smgr, XRegistryKey regKey ); + String libName, XMultiServiceFactory smgr, XRegistryKey regKey, + ClassLoader loader ); private static native Object component_getFactory( - String libName, String implName, XMultiServiceFactory smgr, XRegistryKey regKey ); + String libName, String implName, XMultiServiceFactory smgr, + XRegistryKey regKey, ClassLoader loader ); /** * Supplies the ServiceFactory of the default SharedLibraryLoader. @@ -116,7 +118,9 @@ public class SharedLibraryLoader { { return (XSingleServiceFactory) UnoRuntime.queryInterface( XSingleServiceFactory.class, - component_getFactory( DEFAULT_LIBRARY, DEFAULT_IMPLEMENTATION, smgr, regKey ) ); + component_getFactory( + DEFAULT_LIBRARY, DEFAULT_IMPLEMENTATION, smgr, regKey, + SharedLibraryLoader.class.getClassLoader() ) ); } /** @@ -139,7 +143,9 @@ public class SharedLibraryLoader { { return (XSingleServiceFactory) UnoRuntime.queryInterface( XSingleServiceFactory.class, - component_getFactory( libName, impName, smgr, regKey ) ); + component_getFactory( + libName, impName, smgr, regKey, + SharedLibraryLoader.class.getClassLoader() ) ); } /** @@ -156,7 +162,9 @@ public class SharedLibraryLoader { com.sun.star.lang.XMultiServiceFactory smgr, com.sun.star.registry.XRegistryKey regKey ) { - return component_writeInfo( DEFAULT_LIBRARY, smgr, regKey ); + return component_writeInfo( + DEFAULT_LIBRARY, smgr, regKey, + SharedLibraryLoader.class.getClassLoader() ); } /** @@ -178,7 +186,8 @@ public class SharedLibraryLoader { throws com.sun.star.registry.InvalidRegistryException, com.sun.star.uno.RuntimeException { - return component_writeInfo( libName, smgr, regKey ); + return component_writeInfo( + libName, smgr, regKey, SharedLibraryLoader.class.getClassLoader() ); } } |