![JAR search and dependency download from the Maven repository](/logo.png)
nyla.solutions.global.patterns.command.ProxyCommand Maven / Gradle / Ivy
package nyla.solutions.global.patterns.command;
import nyla.solutions.global.exception.RequiredException;
import nyla.solutions.global.exception.SystemException;
import nyla.solutions.global.patterns.creational.proxy.ObjectMethodProxy;
/**
* Uses ObjectMethodProxy object to execute a method on a target object.
*
* Usage: ProxyCommand cmd = new ProxyCommand();
cmd.setTarget(this);
cmd.setMethodName("tcase1");
Object[] arg1 = {Boolean.valueOf(true), "HELLOW"};
Assert.assertTrue(!tcase1Executed);
Object r1 = cmd.execute(arg1);
* @author Gregory Green
*
*/
public class ProxyCommand implements Command
© 2015 - 2025 Weber Informatics LLC | Privacy Policy