public class BridgeFactory
extends java.lang.Object
XBridgeFactory Interface.
It wrapps the UnoRuntime#getBridgeByNamemethod and delivers a
XBridge component.
This component is only usable for remote bridges.
com.sun.star.uno.UnoRuntime| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
__serviceName
The name of the service, the
JavaLoader acceses this through reflection. |
| Constructor and Description |
|---|
BridgeFactory() |
| Modifier and Type | Method and Description |
|---|---|
static XSingleServiceFactory |
__getServiceFactory(java.lang.String implName,
XMultiServiceFactory multiFactory,
XRegistryKey regKey)
Gives a factory for creating the service.
|
XBridge |
createBridge(java.lang.String sName,
java.lang.String sProtocol,
XConnection aConnection,
XInstanceProvider anInstanceProvider)
Creates a remote bridge and memorizes it under
sName. |
XBridge |
getBridge(java.lang.String sName)
Gets a remote bridge which must already exist.
|
XBridge[] |
getExistingBridges()
Gives all created bridges
|
public static final java.lang.String __serviceName
JavaLoader acceses this through reflection.public static XSingleServiceFactory __getServiceFactory(java.lang.String implName,
XMultiServiceFactory multiFactory,
XRegistryKey regKey)
JavaLoader
implName - the name of the implementation for which a service is desiredmultiFactory - the service manager to be uses if neededregKey - the registryKeyXSingleServiceFactory for creating the componentJavaLoaderpublic XBridge createBridge(java.lang.String sName,
java.lang.String sProtocol,
XConnection aConnection,
XInstanceProvider anInstanceProvider)
throws BridgeExistsException,
com.sun.star.lang.IllegalArgumentException,
com.sun.star.uno.RuntimeException
sName.
sName - the name to memorize the bridgesProtocol - the protocol the bridge should useanInstanceProvider - the instance providerBridgeExistsExceptioncom.sun.star.lang.IllegalArgumentExceptioncom.sun.star.uno.RuntimeExceptioncom.sun.star.bridge.XBridgeFactorypublic XBridge getBridge(java.lang.String sName)
throws com.sun.star.uno.RuntimeException
sName - the name of the bridgecom.sun.star.uno.RuntimeExceptioncom.sun.star.bridge.XBridgeFactorypublic XBridge[] getExistingBridges()
throws com.sun.star.uno.RuntimeException
com.sun.star.uno.RuntimeExceptioncom.sun.star.bridge.XBridgeFactory