Top Description Inners Fields Constructors Methods
com.sun.star.comp.bridgefactory

public Class BridgeFactory

extends Object
implements com.sun.star.bridge.XBridgeFactory
Class Inheritance
Imports
java.math.BigInteger, java.util.ArrayList, com.sun.star.bridge.BridgeExistsException, com.sun.star.bridge.XBridge, com.sun.star.bridge.XBridgeFactory, com.sun.star.bridge.XInstanceProvider, com.sun.star.comp.loader.FactoryHelper, com.sun.star.connection.XConnection, com.sun.star.lang.XMultiServiceFactory, com.sun.star.lang.XSingleServiceFactory, com.sun.star.registry.XRegistryKey, com.sun.star.uno.IBridge, .UnoRuntime

The BridgeFactory class implements the XBridgeFactory Interface.

It wraps the UnoRuntime#getBridgeByNamemethod and delivers a XBridge component.

This component is only usable for remote bridges.

Since
UDK1.0
See Also
com.sun.star.uno.UnoRuntime

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
public static final String
__serviceName

The name of the service, the JavaLoader accesses this through reflection.

private static final boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static com.sun.star.lang.XSingleServiceFactory

Returns:

returns a XSingleServiceFactory for creating the component.
__getServiceFactory
(String
the name of the implementation for which a service is desired.
implName
,
com.sun.star.lang.XMultiServiceFactory
the service manager to be uses if needed.
multiFactory
,
com.sun.star.registry.XRegistryKey
the registryKey.
regKey
)

Gives a factory for creating the service.

public com.sun.star.bridge.XBridge

Returns:

the bridge.
createBridge
(String
the name to memorize the bridge.
sName
,
String
the protocol the bridge should use.
sProtocol
,
com.sun.star.connection.XConnection aConnection, com.sun.star.bridge.XInstanceProvider
the instance provider.
anInstanceProvider
)

Creates a remote bridge and memorizes it under sName.

public com.sun.star.bridge.XBridge

Returns:

the bridge.
getBridge
(String
the name of the bridge.
sName
)

Gets a remote bridge which must already exist.

public synchronized com.sun.star.bridge.XBridge[]

Returns:

the bridges.
getExistingBridges
()

Gives all created bridges.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

__serviceNameback to summary
public static final String __serviceName

The name of the service, the JavaLoader accesses this through reflection.

DEBUGback to summary
private static final boolean DEBUG

Constructor Detail

BridgeFactoryback to summary
public BridgeFactory()

Method Detail

__getServiceFactoryback to summary
public 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.

This method is called by the JavaLoader.

Parameters
implName:String

the name of the implementation for which a service is desired.

multiFactory:com.sun.star.lang.XMultiServiceFactory

the service manager to be uses if needed.

regKey:com.sun.star.registry.XRegistryKey

the registryKey.

Returns:com.sun.star.lang.XSingleServiceFactory

returns a XSingleServiceFactory for creating the component.

See Also
com.sun.star.comp.loader.JavaLoader
createBridgeback to summary
public 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

Creates a remote bridge and memorizes it under sName.

Parameters
sName:String

the name to memorize the bridge.

sProtocol:String

the protocol the bridge should use.

anInstanceProvider:com.sun.star.bridge.XInstanceProvider

the instance provider.

Returns:com.sun.star.bridge.XBridge

the bridge.

See Also
com.sun.star.bridge.XBridgeFactory
getBridgeback to summary
public com.sun.star.bridge.XBridge getBridge(String sName) throws com.sun.star.uno.RuntimeException

Gets a remote bridge which must already exist.

Parameters
sName:String

the name of the bridge.

Returns:com.sun.star.bridge.XBridge

the bridge.

See Also
com.sun.star.bridge.XBridgeFactory
getExistingBridgesback to summary
public synchronized com.sun.star.bridge.XBridge[] getExistingBridges() throws com.sun.star.uno.RuntimeException

Gives all created bridges.

Returns:com.sun.star.bridge.XBridge[]

the bridges.

See Also
com.sun.star.bridge.XBridgeFactory
com.sun.star.comp.bridgefactory back to summary

private final Class BridgeFactory.UniqueToken

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static BigInteger
private final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

a string representation of the object.
toString
()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

counterback to summary
private static BigInteger counter
tokenback to summary
private final String token

Constructor Detail

UniqueTokenback to summary
public UniqueToken()

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
See Also
java.lang.Object#toString