|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgnu.expr.ModuleContext
public class ModuleContext
Maps modules to module instances. Given a class, species a specific instance object for that class.
| Constructor Summary | |
|---|---|
ModuleContext(ModuleManager manager)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
checkInstance(ModuleInfo info)
|
ModuleInfo |
findFromInstance(java.lang.Object instance)
|
java.lang.Object |
findInstance(ModuleInfo info)
If there is no instance of the argument's class, allocated one. |
static ModuleContext |
getContext()
For now returns the shared global ModuleContext. |
ModuleManager |
getManager()
|
java.lang.Object |
makeInstance(ModuleInfo info)
Allocate a new instance of the class corresponding to the argument. |
void |
setInstance(ModuleInfo info,
java.lang.Object instance)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModuleContext(ModuleManager manager)
| Method Detail |
|---|
public static ModuleContext getContext()
public ModuleManager getManager()
public java.lang.Object checkInstance(ModuleInfo info)
public java.lang.Object makeInstance(ModuleInfo info)
public java.lang.Object findInstance(ModuleInfo info)
public void setInstance(ModuleInfo info,
java.lang.Object instance)
public ModuleInfo findFromInstance(java.lang.Object instance)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||