nyla.solutions.commas.ProxyCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nyla.solutions.commas Show documentation
Show all versions of nyla.solutions.commas Show documentation
Command pattern implementation for building services.
The newest version!
package nyla.solutions.commas;
import nyla.solutions.core.exception.RequiredException;
import nyla.solutions.core.exception.SystemException;
import nyla.solutions.core.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