public class StandardIPCScope extends Object implements IIPCScope, IDisposable
IPCHandle instances.
| Constructor and Description |
|---|
StandardIPCScope() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Dispose all of the objects resources.
|
IPCHandle |
exportObject(Object object)
Make a VM local POJO addressable in the
IIPCScope. |
int |
getId() |
IPCHandle |
importHandle(String id)
Make an id retrieved from some marshaling layer available as a handle to
the remote system in the local VM.
|
boolean |
isDisposed()
true if this object is already disposed. |
int |
size()
The number of objects in the scope.
|
public void dispose()
IDisposabledispose in interface IDisposablepublic IPCHandle exportObject(Object object)
IIPCScopeIIPCScope. The handle
returned is the unique representation for the object and may be used for
interprocess communication. A marshaling layer may send the handle id and
later on retrieve the object using the handle id.exportObject in interface IIPCScopepublic int getId()
public IPCHandle importHandle(String id)
IIPCScope
Immediately after import, "getObject" will return null for the
IPCHandle returned. A higher level marshaling may replace this
with a more full blown local representation, thereby allowing object
identity for the remote.
importHandle in interface IIPCScopepublic boolean isDisposed()
IDisposabletrue if this object is already disposed.isDisposed in interface IDisposableCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.