public class ModuleContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
IN_HTTP_SERVER |
static int |
IN_SERVLET |
Constructor and Description |
---|
ModuleContext(ModuleManager manager) |
Modifier and Type | Method and Description |
---|---|
void |
addFlags(int flags) |
void |
clear()
Remove all entries.
|
ModuleInfo |
findFromInstance(java.lang.Object instance) |
java.lang.Object |
findInstance(java.lang.Class clas) |
java.lang.Object |
findInstance(ModuleInfo info)
If there is no instance of the argument's class, allocate one.
|
static ModuleContext |
getContext()
For now returns the shared global ModuleContext.
|
int |
getFlags() |
ModuleManager |
getManager() |
java.lang.Object |
searchInstance(java.lang.Class clas) |
void |
setFlags(int flags) |
void |
setInstance(java.lang.Object instance) |
public static int IN_HTTP_SERVER
public static int IN_SERVLET
public ModuleContext(ModuleManager manager)
public int getFlags()
public void setFlags(int flags)
public void addFlags(int flags)
public static ModuleContext getContext()
public ModuleManager getManager()
public java.lang.Object findInstance(ModuleInfo info)
public java.lang.Object searchInstance(java.lang.Class clas)
public java.lang.Object findInstance(java.lang.Class clas)
public void setInstance(java.lang.Object instance)
public ModuleInfo findFromInstance(java.lang.Object instance)
public void clear()