References Deprecated
IBridge is deprecated or references (maybe indirectly) at least one deprecated element.
See corresponding docs for further information.
Therefore various interfaces are implemented.
The protocol to used is passed by name, the bridge
then looks for it under com.sun.star.lib.uno.protocols.
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private static class | java_remote_bridge.
The ref holder stuff strongly holds objects mapped out via this bridge (the java_environment only holds them weakly). |
| Modifier and Type | Field and Description |
|---|---|
| protected IProtocol | |
| protected IThreadPool | |
| protected IEnvironment | _java_environment
References Deprecated
IEnvironment is deprecated or references (maybe indirectly) at least one deprecated element.
|
| protected final AtomicInteger | |
| private final ArrayList | |
| protected java_remote_bridge. | |
| protected String | |
| protected com. | |
| protected com. | |
| private static final boolean | DEBUG
When set to true, enables various debugging output. |
| private boolean | |
| private final ArrayList | |
| private final String | |
| private final ProxyFactory | |
| private final HashMap |
| Access | Constructor and Description |
|---|---|
| public | java_remote_bridge(IEnvironment java_environment, IEnvironment remote_environment, Object[] args)
References Deprecated
IEnvironment is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public | java_remote_bridge(Object[]
the custom parameters: arg[0] == protocol_name,
arg[1] == xConnection, arg[2] == xInstanceProvider. args)
Deprecated
as of UDK 1.0
Constructs a new bridge. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | addDisposeListener(DisposeListener listener)
Implements com. Adds a dispose listener, to be notified when this object is disposed. |
| public void | |
| pack-priv final void | |
| private synchronized void | |
| public void | |
| private void | |
| pack-priv final void | |
| public String | Returns: connection type and protocol.Gives a description of the connection type and protocol used. |
| public Object | |
| pack-priv int | |
| public String | |
| pack-priv IProtocol | |
| public IEnvironment | Returns: the source environment of this bridge.Implements com.
References Deprecated
IEnvironment is deprecated or references (maybe indirectly) at least one deprecated element.
Gives the source environment. |
| public IEnvironment | Returns: the destination environment of this bridge.Implements com.
References Deprecated
IEnvironment is deprecated or references (maybe indirectly) at least one deprecated element.
Gives the destination environment. |
| private boolean | |
| public Object | Returns: the object in the source environment.the object to map. oId, Type the interface under which is to be mapped. type)Implements com. Maps an object from destination environment to the source environment. |
| public Object | mapInterfaceTo(Object object, Type type)
Implements com. Maps an object from the source environment to the destination environment. |
| private void | |
| public void | |
| public void | |
| pack-priv final void | |
| private Object | |
| public void | sendReply(boolean exception, ThreadId threadId, Object result)
Implements com. Send back a reply for a request. |
| public Object | sendRequest(String oid, Type type, String operation, Object[] params)
Implements com.
|
| _iProtocol | back to summary |
|---|---|
| protected IProtocol _iProtocol | |
| _iThreadPool | back to summary |
|---|---|
| protected IThreadPool _iThreadPool | |
| _java_environment | back to summary |
|---|---|
| protected IEnvironment _java_environment
References Deprecated
See corresponding docs for further information. | |
| _life_count | back to summary |
|---|---|
| protected final AtomicInteger _life_count | |
| _listeners | back to summary |
|---|---|
| private final ArrayList<com. | |
| _messageDispatcher | back to summary |
|---|---|
| protected java_remote_bridge. | |
| _name | back to summary |
|---|---|
| protected String _name | |
| _xConnection | back to summary |
|---|---|
| protected com. | |
| _xInstanceProvider | back to summary |
|---|---|
| protected com. | |
| DEBUG | back to summary |
|---|---|
| private static final boolean DEBUG When set to true, enables various debugging output. | |
| disposed | back to summary |
|---|---|
| private boolean disposed | |
| disposeListeners | back to summary |
|---|---|
| private final ArrayList<DisposeListener> disposeListeners | |
| protocol | back to summary |
|---|---|
| private final String protocol | |
| proxyFactory | back to summary |
|---|---|
| private final ProxyFactory proxyFactory | |
| refHolders | back to summary |
|---|---|
| private final HashMap<String, LinkedList<java_remote_bridge. | |
| java_remote_bridge | back to summary |
|---|---|
| public java_remote_bridge(IEnvironment java_environment, IEnvironment remote_environment, Object[] args) throws Exception
References Deprecated
See corresponding docs for further information. | |
| java_remote_bridge | back to summary |
|---|---|
| public java_remote_bridge(Object[] args) throws Exception
Deprecated as of UDK 1.0 Constructs a new bridge. This method is not part of the provided
| |
| acquire | back to summary |
|---|---|
| public void acquire() Implements com. Increases the life count.
| |
| addDisposeListener | back to summary |
|---|---|
| public void addDisposeListener(DisposeListener listener) Implements com. Doc from com. Adds a dispose listener, to be notified when this object is disposed. It is unspecified what happens when the same listener is added multiple times. It is unspecified exactly when the
| |
| addEventListener | back to summary |
|---|---|
| public void addEventListener(com. Methods XComponent. | |
| addRefHolder | back to summary |
|---|---|
| pack-priv final void addRefHolder(Object obj, Type type, String oid) | |
| checkDisposed | back to summary |
|---|---|
| private synchronized void checkDisposed() This function must only be called while synchronized on this object. | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements com. Doc from com. Disposes the bridge. Sends involved threads an | |
| dispose | back to summary |
|---|---|
| private void dispose(Throwable throwable) | |
| freeHolders | back to summary |
|---|---|
| pack-priv final void freeHolders() | |
| getDescription | back to summary |
|---|---|
| public String getDescription() Gives a description of the connection type and protocol used.
| |
| getInstance | back to summary |
|---|---|
| public Object getInstance(String instanceName) | |
| getLifeCount | back to summary |
|---|---|
| pack-priv int getLifeCount() This method is for testing only. | |
| getName | back to summary |
|---|---|
| public String getName() Gives the name of this bridge.
| |
| getProtocol | back to summary |
|---|---|
| pack-priv IProtocol getProtocol() This method is for testing only. | |
| getSourceEnvironment | back to summary |
|---|---|
| public IEnvironment getSourceEnvironment() Implements com. References Deprecated
See corresponding docs for further information. Gives the source environment.
| |
| getTargetEnvironment | back to summary |
|---|---|
| public IEnvironment getTargetEnvironment() Implements com. References Deprecated
See corresponding docs for further information. Gives the destination environment.
| |
| hasRefHolder | back to summary |
|---|---|
| private boolean hasRefHolder(String oid, Type type) | |
| mapInterfaceFrom | back to summary |
|---|---|
| public Object mapInterfaceFrom(Object oId, Type type) Implements com. Maps an object from destination environment to the source environment.
| |
| mapInterfaceTo | back to summary |
|---|---|
| public Object mapInterfaceTo(Object object, Type type) Implements com. Doc from com. Maps an object from the source environment to the destination environment. | |
| notifyListeners | back to summary |
|---|---|
| private void notifyListeners() | |
| release | back to summary |
|---|---|
| public void release() Implements com. Decreases the life count. If the life count drops to zero, the bridge disposes itself.
| |
| removeEventListener | back to summary |
|---|---|
| public void removeEventListener(com. | |
| remRefHolder | back to summary |
|---|---|
| pack-priv final void remRefHolder(Type type, String oid) | |
| sendInternalRequest | back to summary |
|---|---|
| private Object sendInternalRequest(String oid, Type type, String operation, Object[] arguments) | |
| sendReply | back to summary |
|---|---|
| public void sendReply(boolean exception, ThreadId threadId, Object result) Implements com. Doc from com. Send back a reply for a request. | |
| sendRequest | back to summary |
|---|---|
| public Object sendRequest(String oid, Type type, String operation, Object[] params) throws Throwable Implements com. | |
| Modifier and Type | Field and Description |
|---|---|
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | run()
Overrides java. Implements java. This method is run by the thread when it executes. |
| public synchronized void |
| terminate | back to summary |
|---|---|
| private boolean terminate | |
| MessageDispatcher | back to summary |
|---|---|
| public MessageDispatcher() | |
| run | back to summary |
|---|---|
| public void run() Overrides java. Implements java. Doc from java. This method is run by the thread when it executes. Subclasses of This method is not intended to be invoked directly. If this thread is a
platform thread created with a
| |
| terminate | back to summary |
|---|---|
| public synchronized void terminate() | |
When this bridge is disposed, all remaining ref holder entries are released.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final Object | |
| private final Type |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Type | |
| public boolean |
| count | back to summary |
|---|---|
| private int count | |
| object | back to summary |
|---|---|
private final Object object
| |
| type | back to summary |
|---|---|
| private final Type type | |
| RefHolder | back to summary |
|---|---|
| public RefHolder(Type type, Object object) | |
| acquire | back to summary |
|---|---|
| public void acquire() | |
| getType | back to summary |
|---|---|
| public Type getType() | |
| release | back to summary |
|---|---|
| public boolean release() | |