public class BridgeFactory extends Object implements com.sun.star.bridge.XBridgeFactory
XBridgeFactory Interface.
It wrapps the UnoRuntime#getBridgeByNamemethod and delivers a
XBridge component.
This component is only usable for remote bridges.
UnoRuntime| Modifier and Type | Field and Description |
|---|---|
static String |
__serviceName
The name of the service, the
JavaLoader accesses this through
reflection. |
| Constructor and Description |
|---|
BridgeFactory() |
| Modifier and Type | Method and Description |
|---|---|
static com.sun.star.lang.XSingleServiceFactory |
__getServiceFactory(String implName,
com.sun.star.lang.XMultiServiceFactory multiFactory,
com.sun.star.registry.XRegistryKey regKey)
Gives a factory for creating the service.
|
com.sun.star.bridge.XBridge |
createBridge(String sName,
String sProtocol,
com.sun.star.connection.XConnection aConnection,
com.sun.star.bridge.XInstanceProvider anInstanceProvider)
Creates a remote bridge and memorizes it under
sName. |
com.sun.star.bridge.XBridge |
getBridge(String sName)
Gets a remote bridge which must already exist.
|
com.sun.star.bridge.XBridge[] |
getExistingBridges()
Gives all created bridges.
|
public static final String __serviceName
JavaLoader accesses this through
reflection.public static com.sun.star.lang.XSingleServiceFactory __getServiceFactory(String implName, com.sun.star.lang.XMultiServiceFactory multiFactory, com.sun.star.registry.XRegistryKey regKey)
This method is called by the JavaLoader.
implName - the name of the implementation for which a service is desired.multiFactory - the service manager to be uses if needed.regKey - the registryKey.XSingleServiceFactory for creating the component.JavaLoaderpublic com.sun.star.bridge.XBridge createBridge(String sName, String sProtocol, com.sun.star.connection.XConnection aConnection, com.sun.star.bridge.XInstanceProvider anInstanceProvider) throws com.sun.star.bridge.BridgeExistsException, com.sun.star.lang.IllegalArgumentException, com.sun.star.uno.RuntimeException
sName.createBridge in interface com.sun.star.bridge.XBridgeFactorysName - the name to memorize the bridge.sProtocol - the protocol the bridge should use.anInstanceProvider - the instance provider.com.sun.star.bridge.BridgeExistsExceptioncom.sun.star.lang.IllegalArgumentExceptioncom.sun.star.uno.RuntimeExceptionXBridgeFactorypublic com.sun.star.bridge.XBridge getBridge(String sName) throws com.sun.star.uno.RuntimeException
getBridge in interface com.sun.star.bridge.XBridgeFactorysName - the name of the bridge.com.sun.star.uno.RuntimeExceptionXBridgeFactorypublic com.sun.star.bridge.XBridge[] getExistingBridges()
throws com.sun.star.uno.RuntimeException
getExistingBridges in interface com.sun.star.bridge.XBridgeFactorycom.sun.star.uno.RuntimeExceptionXBridgeFactory