public abstract class ExampleRunner extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
ExampleRunner(ApiConfiguration config)
Creates a new instance of
ExampleRunner using the provided ApiConfiguration. |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doRun()
Concrete implementation.
|
static void |
echo(String message)
Logs the provided message.
|
static void |
echo(String format,
Object... args)
Logs an INFO message according to the specified format and arguments.
|
static ApiConfiguration |
extractConfig(String[] args)
Extracts required parameters from program
args. |
ApiConfiguration |
getConfig() |
void |
run()
Runs the current example.
|
static void |
usage()
Displays the usage information.
|
protected ExampleRunner(ApiConfiguration config)
ExampleRunner using the provided ApiConfiguration.config - ApiConfiguration instancepublic void run()
throws EvrythngException
EvrythngExceptionprotected abstract void doRun()
throws EvrythngException
EvrythngExceptionpublic static ApiConfiguration extractConfig(String[] args)
args.args - program argumentsApiConfiguration instancepublic static void usage()
public static void echo(String message)
message - messagepublic static void echo(String format, Object... args)
format - formatargs - argumentspublic ApiConfiguration getConfig()
Copyright © 2016 EVRYTHNG Ltd London / Zurich. All rights reserved.