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

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

package com.jpattern.core.command;

import java.io.Serializable;

import com.jpattern.shared.result.IResult;

/**
 * 
 * A strategy to decide how to execute or rollback the commands in the chain.
 * 
 * @author Francesco Cina'
 *
 * 11/set/2011
 */
public interface ICommandChainStrategy extends Serializable {

	boolean executeNext(IResult result);
	
	boolean executeRollback();
	
	void doExec(ICommand command, ACommandResult commandResult, boolean catchRuntimeException, ICommandExecutor commandExecutor);
	
	void doRollback(ICommand command, ACommandResult commandResult, boolean catchRuntimeException, ICommandExecutor commandExecutor);
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy