|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectautohit.server.SimpleSystemContext
A simple system context for a server or invoker.
It includes: a basic log manager (@see #logger) a root logger a basic properties set (@see #prop) a single script SIM compiler (@see #compiler) a universe factory (@see #uf) a LOCAL universe server a Kernel (uninitialized!) a root loader (uninitialized!)
It requires the root property be set.
EPG - Initial - 25Apr03
Field Summary | |
Controller |
cc
Channel controller |
SimCompiler |
compiler
Script compiler. |
boolean |
debug
Debugging flag |
org.apache.commons.collections.ExtendedProperties |
invokerprop
Invoker properties set |
Kernel |
k
Kernel |
AutohitLogInjectorWrapper |
logger
Root log injector |
AutohitBasicLogManager |
logManager
Primary log manager |
org.apache.commons.collections.ExtendedProperties |
prop
The system properties set |
java.lang.String |
root
Root path |
UniverseFactory |
uf
Universe factory |
Universe |
uni
Our simple little universe. |
static int |
uniqueN
Unique number counter -- it will be unique for all instances of SimpleSystemContext. |
Constructor Summary | |
SimpleSystemContext()
Default Constructor. |
Method Summary | |
boolean |
debuggingState()
Get debugging state |
CommandRegistry |
getCommandRegistry()
Get the command registry as a properties set. |
XmlCompiler |
getCompiler()
Get the XML compiler |
Injector |
getEventDispatcher()
Cheat. |
org.apache.commons.collections.ExtendedProperties |
getInvokerProperties()
Get a reference to the invoker properties set. |
Kernel |
getKernel()
Get the Kernel |
VMLoader |
getLoader()
Get the VM Loader |
AutohitBasicLogManager |
getLogManager()
Get log manager reference |
org.apache.commons.collections.ExtendedProperties |
getPropertiesSet()
Get properties set |
AutohitLogInjectorWrapper |
getRootLogger()
Get a reference to a generic, root log injector |
Universe |
getUniverse()
Get the default universe |
Universe |
getUniverse(java.lang.String handle)
Get a universe service by handle. |
void |
init(org.apache.commons.collections.ExtendedProperties props)
Properties constructor. |
void |
loadProperties(org.apache.commons.collections.ExtendedProperties props)
Load properties. |
int |
uniqueInteger()
Unique number |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public AutohitBasicLogManager logManager
public AutohitLogInjectorWrapper logger
public SimCompiler compiler
public Universe uni
public org.apache.commons.collections.ExtendedProperties prop
public org.apache.commons.collections.ExtendedProperties invokerprop
public UniverseFactory uf
public Controller cc
public Kernel k
public boolean debug
public java.lang.String root
public static int uniqueN
Constructor Detail |
public SimpleSystemContext() throws java.lang.Exception
Method Detail |
public void init(org.apache.commons.collections.ExtendedProperties props) throws java.lang.Exception
init
in interface SystemContext
props
- properties set
java.lang.Exception
public void loadProperties(org.apache.commons.collections.ExtendedProperties props) throws java.lang.Exception
loadProperties
in interface SystemContext
props
- a properties set
java.lang.Exception
public Universe getUniverse()
getUniverse
in interface SystemContext
public Universe getUniverse(java.lang.String handle)
getUniverse
in interface SystemContext
handle
- handle to the universe
public XmlCompiler getCompiler()
getCompiler
in interface SystemContext
public AutohitLogInjectorWrapper getRootLogger()
getRootLogger
in interface SystemContext
public Injector getEventDispatcher()
getEventDispatcher
in interface SystemContext
public org.apache.commons.collections.ExtendedProperties getPropertiesSet()
getPropertiesSet
in interface SystemContext
public AutohitBasicLogManager getLogManager()
getLogManager
in interface SystemContext
public Kernel getKernel()
getKernel
in interface SystemContext
public VMLoader getLoader()
getLoader
in interface SystemContext
public CommandRegistry getCommandRegistry()
getCommandRegistry
in interface SystemContext
public int uniqueInteger()
uniqueInteger
in interface SystemContext
public boolean debuggingState()
debuggingState
in interface SystemContext
public org.apache.commons.collections.ExtendedProperties getInvokerProperties()
getInvokerProperties
in interface SystemContext
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |