public abstract class AbstractTaskClientGenerator extends Object implements FallibleCommand
For internal use only. May be renamed or removed in a future release.
Constructor and Description |
---|
AbstractTaskClientGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Runs the given command.
|
protected abstract String |
getFileContent()
Get file content for writing to the generated file.
|
protected abstract File |
getGeneratedFile()
Get the generated file where content will be written.
|
protected abstract boolean |
shouldGenerate()
Check if it should generate the file or not.
|
protected abstract String getFileContent() throws IOException
IOException
- if IO error happens while reading file content.protected abstract File getGeneratedFile()
protected abstract boolean shouldGenerate()
public void execute() throws ExecutionFailedException
FallibleCommand
If execution fails then the command may throw an exception which may give a message and a cause of the failure.
execute
in interface FallibleCommand
ExecutionFailedException
- if there is an execution errorCopyright © 2022. All rights reserved.