INTEGRATION: CWS sb20 (1.2.34); FILE MERGED
2004/07/09 12:43:45 sb 1.2.34.1: #i29741# Retrofitted existing services as single-interface--based ones.
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
*
|
||||
* $RCSfile: LocalOfficeImpl.java,v $
|
||||
*
|
||||
* $Revision: 1.2 $
|
||||
* $Revision: 1.3 $
|
||||
*
|
||||
* last change: $Author: toconnor $ $Date: 2002-11-13 17:44:10 $
|
||||
* last change: $Author: rt $ $Date: 2004-07-23 14:54:33 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
@@ -66,6 +66,7 @@ import java.net.ConnectException;
|
||||
import com.sun.star.lang.XMultiServiceFactory;
|
||||
import com.sun.star.lang.XMultiComponentFactory;
|
||||
import com.sun.star.lang.XComponent;
|
||||
import com.sun.star.bridge.UnoUrlResolver;
|
||||
import com.sun.star.bridge.XUnoUrlResolver;
|
||||
import com.sun.star.beans.XPropertySet;
|
||||
import com.sun.star.comp.helper.Bootstrap;
|
||||
@@ -170,12 +171,7 @@ System.out.println("*** LocalOfficeImpl.refreshStorage: DONE");
|
||||
{
|
||||
Object object;
|
||||
mComponentContext = Bootstrap.createInitialComponentContext(null);
|
||||
mComponentFactory = mComponentContext.getServiceManager();
|
||||
object = mComponentFactory.createInstanceWithContext(
|
||||
"com.sun.star.bridge.UnoUrlResolver", mComponentContext);
|
||||
XUnoUrlResolver urlresolver;
|
||||
urlresolver = (XUnoUrlResolver)UnoRuntime.queryInterface(
|
||||
XUnoUrlResolver.class, object);
|
||||
XUnoUrlResolver urlresolver = UnoUrlResolver.create(mComponentContext);
|
||||
object = urlresolver.resolve(
|
||||
"uno:socket,host=localhost,port=" +
|
||||
port +
|
||||
|
Reference in New Issue
Block a user