public interface IBridge
Bridges are able to map one object from one UNO environment to another and vice versa.
IBridge
,
IQueryInterface
,
UnoRuntime
限定符和类型 | 方法和说明 |
---|---|
void |
acquire()
已过时。
Increases the life count.
|
void |
dispose()
已过时。
Disposes the bridge.
|
IEnvironment |
getSourceEnvironment()
已过时。
Returns the source environment.
|
IEnvironment |
getTargetEnvironment()
已过时。
Returns the destination environment.
|
Object |
mapInterfaceFrom(Object object,
Type type)
已过时。
Maps an object from the destination environment to the source
environment.
|
Object |
mapInterfaceTo(Object object,
Type type)
已过时。
Maps an object from the source environment to the destination
environment.
|
void |
release()
已过时。
Decreases the life count.
|
Object mapInterfaceTo(Object object, Type type)
object
- the object to maptype
- the type of the interface that shall be mappedObject mapInterfaceFrom(Object object, Type type)
object
- the object to maptype
- the type of the interface that shall be mappedIEnvironment getSourceEnvironment()
IEnvironment getTargetEnvironment()
void acquire()
void release()
If the life count drops to zero, the bridge disposes itself.
void dispose() throws InterruptedException, IOException
Sends involved threads an InterruptedException
. Releases
mapped objects.