1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23#ifndef _COM_SUN_STAR_BRIDGE_XINSTANCEPROVIDER_IDL_ 24#define _COM_SUN_STAR_BRIDGE_XINSTANCEPROVIDER_IDL_ 25 26#include <com/sun/star/container/NoSuchElementException.idl> 27 28 module com { module sun { module star { module bridge { 29 30 31/** allows to export UNO objects to other processes. 32 33 @see XBridge 34 */ 35published interface XInstanceProvider: com::sun::star::uno::XInterface 36{ 37 38 /** gets called, when an initial object is requested from a remote process. 39 You may either create a new instance or return an existing object. 40 41 @param sInstanceName 42 The name of the requested object. 43 44 @returns 45 the object associated with the name. The return value may be null in case 46 there is no object to offer for this string. In this case, XBridge.getInstance() 47 (in the other process) will also return a null reference. 48 49 @throws NoSuchElementException 50 You may throw this exception to indicate, that there is no object for this 51 name. Due to a specification bug, this exception will appear as a RuntimeException 52 at the XBridge.getInstance() method. 53 */ 54 com::sun::star::uno::XInterface getInstance( [in] string sInstanceName ) 55 raises ( com::sun::star::container::NoSuchElementException ); 56}; 57 58};};};}; 59 60#endif 61