Top Description Methods
com.sun.star.uno

public Interface IBridge

Known Direct Implementers
com.sun.star.uno.UnoRuntime.BridgeTurner, com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge
Annotations
@Deprecated
Imports
java.io.IOException

Deprecated

As of UDK 3.2, this interface is deprecated, without offering a replacement.

This is abstract interface for bridges.

Bridges are able to map one object from one UNO environment to another and vice versa.

See Also
com.sun.star.uno.IBridge, com.sun.star.uno.IQueryInterface, com.sun.star.uno.UnoRuntime

Method Summary

Modifier and TypeMethod and Description
public void
acquire()

Increases the life count.

public void
dispose()

Disposes the bridge.

public IEnvironment

Returns:

the source environment of this bridge
getSourceEnvironment
()
References Deprecated IEnvironment is deprecated or references (maybe indirectly) at least one deprecated element.

Returns the source environment.

public IEnvironment

Returns:

the destination environment of this bridge
getTargetEnvironment
()
References Deprecated IEnvironment is deprecated or references (maybe indirectly) at least one deprecated element.

Returns the destination environment.

public Object

Returns:

the object in the source environment
mapInterfaceFrom
(Object
the object to map
object
,
Type
the type of the interface that shall be mapped
type
)

Maps an object from the destination environment to the source environment.

public Object

Returns:

the object in the destination environment
mapInterfaceTo
(Object
the object to map
object
,
Type
the type of the interface that shall be mapped
type
)

Maps an object from the source environment to the destination environment.

public void
release()

Decreases the life count.

Method Detail

acquireback to summary
public void acquire()

Increases the life count.

disposeback to summary
public void dispose() throws InterruptedException, IOException

Disposes the bridge.

Sends involved threads an InterruptedException. Releases mapped objects.

Exceptions
InterruptedException:
it's deprecated so who cares.
IOException:
it's deprecated so who cares.
getSourceEnvironmentback to summary
public IEnvironment getSourceEnvironment()

References Deprecated

IEnvironment is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Returns the source environment.

Returns:IEnvironment

the source environment of this bridge

getTargetEnvironmentback to summary
public IEnvironment getTargetEnvironment()

References Deprecated

IEnvironment is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Returns the destination environment.

Returns:IEnvironment

the destination environment of this bridge

mapInterfaceFromback to summary
public Object mapInterfaceFrom(Object object, Type type)

Maps an object from the destination environment to the source environment.

Parameters
object:Object

the object to map

type:Type

the type of the interface that shall be mapped

Returns:Object

the object in the source environment

mapInterfaceToback to summary
public Object mapInterfaceTo(Object object, Type type)

Maps an object from the source environment to the destination environment.

Parameters
object:Object

the object to map

type:Type

the type of the interface that shall be mapped

Returns:Object

the object in the destination environment

releaseback to summary
public void release()

Decreases the life count.

If the life count drops to zero, the bridge disposes itself.