(incubating) | The Free and Open Productivity Suite

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: com :: sun :: star :: bridge ::

interface XInstanceProvider
Description
allows to export UNO objects to other processes.
See also
XBridge

Methods' Summary
getInstance gets called, when an initial object is requested from a remote process. You may either create a new instance or return an existing object.  
Methods' Details
getInstance
::com::sun::star::uno::XInterface
getInstance( [in] string  sInstanceName )
raises( ::com::sun::star::container::NoSuchElementException );

Description
gets called, when an initial object is requested from a remote process. You may either create a new instance or return an existing object.
Parameter sInstanceName
The name of the requested object.
Returns
the object associated with the name. The return value may be null in case there is no object to offer for this string. In this case, XBridge.getInstance() (in the other process) will also return a null reference.
Throws
NoSuchElementException You may throw this exception to indicate, that there is no object for this name. Due to a specification bug, this exception will appear as a RuntimeException at the XBridge.getInstance() method.
Top of Page

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright & License
Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.