com.jpattern.core.command.AsyncExecCommandWrapper Maven / Gradle / Ivy
package com.jpattern.core.command;
/**
*
* @author Francesco Cina'
*
* 11/set/2011
*/
public class AsyncExecCommandWrapper implements Runnable {
private final ICommand> command;
private final ACommandResult commandResult;
private final boolean catchRuntimeException;
AsyncExecCommandWrapper(ICommand> command, boolean catchRuntimeException, ACommandResult commandResult) {
this.command = command;
this.catchRuntimeException = catchRuntimeException;
this.commandResult = commandResult;
}
@Override
public void run() {
command.doExec(catchRuntimeException, commandResult);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy