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

org.jsoftware.utils.chain.ChainCommand Maven / Gradle / Ivy

The newest version!
package org.jsoftware.utils.chain;

/**
 * Chain command
 * @see Chain
 * @author m-szalik
 * @param  invocation context type
 * 

Example: * * class MyChainCommand implements ChainCommand { * @Override * public void execute(Context context, DoChain doChain) throws Exception { * // do something before * doChain.doContinue(context); // execute successors * // do something after * } *} * *

*/ public interface ChainCommand { /** * @param context invocation context * @param doChain invoke next command in chain * @throws Exception any exception */ void execute(C context, DoChain doChain) throws Exception; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy