public class java_remote_bridge extends java.lang.Object implements IReceiver
The protocol to used is passed by name, the bridge
then looks for it under com.sun.star.lib.uno.protocols.
| Modifier and Type | Field and Description |
|---|---|
protected IProtocol |
_iProtocol |
protected IThreadPool |
_iThreadPool |
protected IEnvironment |
_java_environment |
protected int |
_life_count |
protected com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.MessageDispatcher |
_messageDispatcher |
protected java.lang.String |
_name |
protected XConnection |
_xConnection |
protected XInstanceProvider |
_xInstanceProvider |
| Constructor and Description |
|---|
java_remote_bridge(IEnvironment java_environment,
IEnvironment remote_environment,
java.lang.Object[] args) |
java_remote_bridge(java.lang.Object[] args)
Deprecated.
as of UDK 1.0
|
| Modifier and Type | Method and Description |
|---|---|
void |
acquire()
Increases the life count.
|
void |
addDisposeListener(DisposeListener listener) |
void |
addEventListener(XEventListener xEventListener) |
void |
dispose() |
java.lang.String |
getDescription()
Gives a description of the connection type and protocol used
|
java.lang.Object |
getInstance(java.lang.String instanceName) |
java.lang.String |
getName()
Gives the name of this bridge
|
IEnvironment |
getSourceEnvironment()
Gives the source environment.
|
IEnvironment |
getTargetEnvironment()
Gives the destination environment.
|
java.lang.Object |
mapInterfaceFrom(java.lang.Object oId,
Type type)
Maps an object from destination environment to the source environment.
|
java.lang.Object |
mapInterfaceTo(java.lang.Object object,
Type type) |
void |
release()
Decreases the life count.
|
void |
removeEventListener(XEventListener xEventListener) |
void |
sendReply(boolean exception,
ThreadId threadId,
java.lang.Object result)
Send back a reply for a request.
|
java.lang.Object |
sendRequest(java.lang.String oid,
Type type,
java.lang.String operation,
java.lang.Object[] params) |
protected XConnection _xConnection
protected XInstanceProvider _xInstanceProvider
protected java.lang.String _name
protected IProtocol _iProtocol
protected IEnvironment _java_environment
protected com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.MessageDispatcher _messageDispatcher
protected int _life_count
protected IThreadPool _iThreadPool
public java_remote_bridge(IEnvironment java_environment,
IEnvironment remote_environment,
java.lang.Object[] args)
throws java.lang.Exception
java.lang.Exceptionpublic java_remote_bridge(java.lang.Object[] args)
throws java.lang.Exception
This method is not part of the provided api
and should only be used by the UNO runtime.
args - the custom parameters: arg[0] == protocol_name, arg[1] == xConnection, arg[2] == xInstanceProviderjava.lang.Exceptionpublic java.lang.Object mapInterfaceTo(java.lang.Object object,
Type type)
public java.lang.Object mapInterfaceFrom(java.lang.Object oId,
Type type)
object - the object to maptype - the interface under which is to be mappedcom.sun.star.uno.IBridge#mapInterfaceFrompublic IEnvironment getSourceEnvironment()
com.sun.star.uno.IBridge#getSourceEnvironmentpublic IEnvironment getTargetEnvironment()
com.sun.star.uno.IBridge#getTargetEnvironmentpublic void acquire()
com.sun.star.uno.IBridge#acquirepublic void release()
com.sun.star.uno.IBridge#releasepublic void dispose()
public java.lang.Object getInstance(java.lang.String instanceName)
public java.lang.String getName()
com.sun.star.bridge.XBridge#getNamepublic java.lang.String getDescription()
com.sun.star.bridge.XBridge#getDescriptionpublic void sendReply(boolean exception,
ThreadId threadId,
java.lang.Object result)
IReceiverpublic java.lang.Object sendRequest(java.lang.String oid,
Type type,
java.lang.String operation,
java.lang.Object[] params)
throws java.lang.Throwable
java.lang.Throwablepublic void addEventListener(XEventListener xEventListener)
public void removeEventListener(XEventListener xEventListener)
public void addDisposeListener(DisposeListener listener)