diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-07-23 13:44:59 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-07-23 13:44:59 +0000 |
commit | c9415d4fac2fd4ff2daeed1c3f8bdfd2a0eb2f5d (patch) | |
tree | 9753845a3e77fae5372acbeffa231aa0a3a7d97e /jurt/workbench | |
parent | 0a454e6050d62f829891a8144a1fd7d2c6bd5c32 (diff) |
INTEGRATION: CWS sb20 (1.2.100); FILE MERGED
2004/07/09 09:56:22 sb 1.2.100.1: #i29741# Retrofitted existing services as single-interface--based ones.
Diffstat (limited to 'jurt/workbench')
-rw-r--r-- | jurt/workbench/com/sun/star/comp/urlresolver/UrlResolver_Test.java | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/jurt/workbench/com/sun/star/comp/urlresolver/UrlResolver_Test.java b/jurt/workbench/com/sun/star/comp/urlresolver/UrlResolver_Test.java index 5e3122ffdfca..19fe67bdeea8 100644 --- a/jurt/workbench/com/sun/star/comp/urlresolver/UrlResolver_Test.java +++ b/jurt/workbench/com/sun/star/comp/urlresolver/UrlResolver_Test.java @@ -2,9 +2,9 @@ * * $RCSfile: UrlResolver_Test.java,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: vg $ $Date: 2003-05-22 09:22:34 $ + * last change: $Author: rt $ $Date: 2004-07-23 14:44:59 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -64,6 +64,7 @@ package com.sun.star.comp.urlresolver; import com.sun.star.uno.XComponentContext; import com.sun.star.comp.helper.Bootstrap; import com.sun.star.lang.XMultiComponentFactory; +import com.sun.star.bridge.UnoUrlResolver; import com.sun.star.bridge.XUnoUrlResolver; import com.sun.star.beans.XPropertySet; import com.sun.star.uno.UnoRuntime; @@ -82,11 +83,8 @@ public class UrlResolver_Test XMultiComponentFactory xLocalServiceManager = xcomponentcontext.getServiceManager(); // create a connector, so that it can contact the office - Object xUrlResolver = xLocalServiceManager.createInstanceWithContext( - "com.sun.star.bridge.UnoUrlResolver", xcomponentcontext ); - - XUnoUrlResolver urlResolver = (XUnoUrlResolver) UnoRuntime.queryInterface( - XUnoUrlResolver.class, xUrlResolver ); + XUnoUrlResolver urlResolver + = UnoUrlResolver.create( xcomponentcontext ); Object initialObject = urlResolver.resolve( "uno:socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" ); |