JanosVM v0.6.0 Java API Documentation: Class ExportManager
|
JanosVM v0.6.0 Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.utah.janosvm.sys.ExportManager
Tracks the importables associated with a single exportable. Each ExportManager is associated with exactly one Exportable. An exportable may have multiple ExportManagers (if it is exported under mutliple names, for example).
An ExportManager tracks the links between an exported object and its imports. This is required so that we can revoke any references when a team dies or the export is no longer available to other teams.
Importable
,
Exportable
Inner Class Summary | |
class |
ExportManager.ImportEnumerator
The ImportEnumerator is used to traverse the list of importers of an export. |
Method Summary | |
void |
addImporter(Importable im)
Add an Importable to the list of objects importing our export. |
ExportManager.ImportEnumerator |
getEnumerator()
|
ExportManager.ImportEnumerator |
imports()
Similar to the above except that it constructs a new ImportEnumerator and adds that to the list. |
boolean |
imports(ExportManager.ImportEnumerator ie)
Setup the given ImportEnumerator to traverse the importers list. |
void |
setExport(Exportable ex)
If this manager is empty you can fill in its export with this function. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Method Detail |
public void setExport(Exportable ex)
ex
- The exported object to be managed.public void addImporter(Importable im)
im
- The Importable that wants a reference to our export.public ExportManager.ImportEnumerator getEnumerator()
public boolean imports(ExportManager.ImportEnumerator ie)
ie
- The ImportEnumerator that will be inserted into the importers
list.public ExportManager.ImportEnumerator imports()
public java.lang.String toString()
|
JanosVM v0.6.0 Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |