public final class ConsoleFoundation extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ConsoleFoundation.UI
Contract for user interfaces.
|
static class |
ConsoleFoundation.WireMessageDispatch
Factory that wires up the message dispatch.
|
Constructor and Description |
---|
ConsoleFoundation(Resources resources,
org.slf4j.Logger logger,
boolean headless)
Constructor.
|
ConsoleFoundation(Resources resources,
org.slf4j.Logger logger,
boolean headless,
Timer timer,
ConsoleProperties properties)
Constructor.
|
public ConsoleFoundation(Resources resources, org.slf4j.Logger logger, boolean headless) throws GrinderException
resources
- Console resourceslogger
- Logger.headless
- true
=> run with the text UI.GrinderException
- If an error occurs.public ConsoleFoundation(Resources resources, org.slf4j.Logger logger, boolean headless, Timer timer, ConsoleProperties properties) throws GrinderException
resources
- Console resourceslogger
- Logger.headless
- true
=> run with the text UI.timer
- A timer.properties
- The properties.GrinderException
- If an error occurs.public void run()
shutdown()
.public void shutdown()
Once stopped, the instance cannot be restarted.
Copyright © 2000-2014. All Rights Reserved.