Constructor and Description |
---|
ApplicationService(Shell shell)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String[] |
getArguments()
An array of the string arguments sent from the shell.
|
Object |
getGlobal(String name,
Object defaultValue)
Gets a value global to the current VM, atomically setting it to a default
value if it doesn't exist.
|
ConcurrentMap<String,Object> |
getGlobals()
A map of all values global to the current VM.
|
Logger |
getLogger()
The logger.
|
Logger |
getSubLogger(String name)
A logger with a name appended with a "." to the application's logger
name.
|
void |
setLogger(Logger logger) |
public ApplicationService(Shell shell)
shell
- The shell instancepublic String[] getArguments()
public ConcurrentMap<String,Object> getGlobals()
public Object getGlobal(String name, Object defaultValue)
name
- The name of the globaldefaultValue
- The default valuepublic Logger getLogger()
setLogger(Logger)
public void setLogger(Logger logger)
logger
- The loggergetLogger()
public Logger getSubLogger(String name)
name
- The sub-logger namegetLogger()
Copyright © 2009-2015 Three Crickets LLC.