public interface Invokable
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Template method for main application code.
|
void |
exit(ExitCode status)
Exits the invokable.
|
void |
exit(int status)
Exits the invokable.
|
IO |
getIoStreams()
Get stream object for I/O.
|
void |
init()
Initializes the invokable.
|
boolean |
isDebugEnabled()
isDebugEnabled.
|
void |
setExiter(Exitable exiter)
Set an
exiter to handle exit calls. |
void |
setIoStreams(IO ioStreams)
Set stream object for I/O.
|
void init()
void execute()
throws Exception
Exception - If something goes wrong.IO getIoStreams()
null, always same instance until it was
resetvoid setIoStreams(IO ioStreams)
ioStreams - must not be nullvoid exit(ExitCode status)
status - must not be nullvoid exit(int status)
status - any intvoid setExiter(Exitable exiter)
exiter to handle exit calls.exiter - must not be nullboolean isDebugEnabled()
isDebugEnabled.
Copyright © 2014 Sven Strittmatter. All Rights Reserved.