|
UNO Java Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sun.star.uno
Interface IBridge
- public interface IBridge
This is abstract interface for Bridges. Bridges are able to map one object from one UNO environment to another and vice versa.
- Since:
- UDK1.0
- See Also:
UnoRuntime
,IQueryInterface
,IBridge
Method Summary | |
void |
acquire()
Increases the life count. |
void |
dispose()
Disposes the bridge. |
IEnvironment |
getSourceEnvironment()
Gives the source environment. |
IEnvironment |
getTargetEnvironment()
Gives the destination environment. |
java.lang.Object |
mapInterfaceFrom(java.lang.Object object,
Type type)
Maps an object from destination environment to the source environment. |
java.lang.Object |
mapInterfaceTo(java.lang.Object object,
Type type)
Maps an object from the source environment to the destination environment. |
void |
release()
Decreases the life count. |
Method Detail |
mapInterfaceTo
public java.lang.Object mapInterfaceTo(java.lang.Object object, Type type)
- Maps an object from the source environment to the destination environment.
- Parameters:
object
- the object to maptype
- the type of the interface that shall be mapped- Returns:
- the object in the destination environment
mapInterfaceFrom
public java.lang.Object mapInterfaceFrom(java.lang.Object object, Type type)
- Maps an object from destination environment to the source environment.
- Parameters:
object
- the object to map- Returns:
- the object in the source environment
getSourceEnvironment
public IEnvironment getSourceEnvironment()
- Gives the source environment.
- Returns:
- the source environment of this bridge
getTargetEnvironment
public IEnvironment getTargetEnvironment()
- Gives the destination environment.
- Returns:
- the destination environment of this bridge
acquire
public void acquire()
- Increases the life count.
release
public void release()
- Decreases the life count.
If the life count drops to zero, the bridge disposes itself.
dispose
public void dispose() throws java.lang.InterruptedException, java.io.IOException
- Disposes the bridge. Sends belonging threads an interrupt exception.
Releases mapped objects.
java.lang.InterruptedException
java.io.IOException
|
UNO Java Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |