|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rit.m2mi.ExportMap
edu.rit.m2mi.InterfaceExportMap
public class InterfaceExportMap
Class InterfaceExportMap provides a mapping from a target interface name to a set of objects that have been exported with that interface. This is used to determine the target objects for an omnihandle invocation for a certain target interface.
Note: Class InterfaceExportMap is not multiple thread safe.
Constructor Summary | |
---|---|
InterfaceExportMap(M2MIMessagePrefix theMessagePrefixBag)
Construct a new, empty interface export map. |
Method Summary | |
---|---|
void |
export(String intf,
Object obj)
Export the given object with the given interface in this export map. |
boolean |
isExported(String intf,
Object obj)
Determine if the given object is exported with the given interface in this export map. |
Iterator |
iterator(String intf)
Obtain an iterator for visiting the objects exported with the given interface in this export map. |
void |
unexport(String intf,
Object obj)
Unexport the given object from the given interface in this export map. |
Methods inherited from class edu.rit.m2mi.ExportMap |
---|
export, isExported, isExported, iterator, unexport, unexport, unexportKey |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InterfaceExportMap(M2MIMessagePrefix theMessagePrefixBag)
theMessagePrefixBag
- M2MI message prefix bag.
NullPointerException
- (unchecked exception) Thrown if theMessagePrefixBag is null.Method Detail |
---|
public void export(String intf, Object obj)
intf
- Fully-qualified name of the target interface.obj
- Object to export.
NullPointerException
- (unchecked exception) Thrown if intf is null or obj
is null.
ExportException
- (unchecked exception) Thrown if there was a problem exporting the
object.public void unexport(String intf, Object obj)
intf
- Fully-qualified name of the target interface.obj
- Object to unexport.
NullPointerException
- (unchecked exception) Thrown if intf is null or obj
is null.
ExportException
- (unchecked exception) Thrown if there was a problem unexporting the
object.public boolean isExported(String intf, Object obj)
intf
- Fully-qualified name of the target interface.obj
- Object.
NullPointerException
- (unchecked exception) Thrown if intf is null or obj
is null.public Iterator iterator(String intf)
intf
- Fully-qualified name of the target interface.
NullPointerException
- (unchecked exception) Thrown if intf is null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |