All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jpattern.core.command.AsyncExecCommandWrapper Maven / Gradle / Ivy

There is a newer version: 3.6.2
Show newest version
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