| Modifier and Type | Field and Description |
|---|---|
private static String |
CANCEL |
private Document |
document
Document containing the valid answers of the user.
|
private Queue<SetupRequest> |
requests
Queue for setup requests in order of insertion.
|
private ISetupCancel |
setupCancel
Method that called when this setup sequence is cancelled.
|
private ISetupComplete |
setupComplete
Method that called once this setup sequence has been completed successfully.
|
| Constructor and Description |
|---|
Setup() |
| Modifier and Type | Method and Description |
|---|---|
Setup |
request(SetupRequest setupRequest)
Add a setup request to this setup sequence.
|
Setup |
setupCancel(ISetupCancel iSetupCancel)
Add a method that will be called when this setup sequence is cancelled.
|
Setup |
setupComplete(ISetupComplete iSetupComplete)
Add a method that will be called when this setup sequence completes
successfully.
|
void |
start(jline.console.ConsoleReader consoleReader)
Starts the setup sequence.
|
private static final String CANCEL
private final Queue<SetupRequest> requests
private final Document document
private ISetupComplete setupComplete
private ISetupCancel setupCancel
public void start(jline.console.ConsoleReader consoleReader)
ISetuppublic Setup request(SetupRequest setupRequest)
setupRequest - the setup request to be addedpublic Setup setupComplete(ISetupComplete iSetupComplete)
iSetupComplete - the function that will be called, when the setup
sequence completes successfully.public Setup setupCancel(ISetupCancel iSetupCancel)
iSetupCancel - the function that will be called, if this setup
sequence is cancelled.Copyright © 2020. All rights reserved.