Interface Executor
-
- All Known Implementing Classes:
ShellExecutor
public interface Executor
Interface for class that provide a way to execute aCommandLineDescriptor
.- Author:
- tiry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExecResult
exec(CommandLineDescriptor cmdDesc, CmdParameters params, EnvironmentDescriptor env)
No exception is thrown but the returnedExecResult
contains everything about the command execution, including an optional exception.
-
-
-
Method Detail
-
exec
ExecResult exec(CommandLineDescriptor cmdDesc, CmdParameters params, EnvironmentDescriptor env)
No exception is thrown but the returnedExecResult
contains everything about the command execution, including an optional exception.- Parameters:
cmdDesc
- Command to run. Cannot be null.params
- Parameters passed to the command. Cannot be null.env
- Environment context (variable and working directory)- Returns:
- Result of the execution
- Since:
- 7.4
-
-