S - The class name of the source object that spawned this view.public class Executor<S> extends Object
addParameter(java.lang.Class, java.lang.Object) method
if the method you specified requires parameters.
Copyright 2006 Sans Pareil Technologies, Inc.
| Constructor and Description |
|---|
Executor(S source,
String methodName)
Create a new instance of the class with the specified parameters
|
| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(Class cls,
Object object)
Add the specified source and class combination to
args. |
void |
execute()
|
KeyValue<Class,Object> |
getParameter(int index)
Retrieve the parameters at the specified index in the method argument
list.
|
int |
getParameterCount() |
public Executor(S source, String methodName)
source - The source to set.methodName - The methodName to set.public void addParameter(Class cls, Object object)
args.
This method should be invoked as many times are required by
specifying the class and object parameters in the same order
required to execute methodName.cls - The class of the parameterobject - The parameter valuepublic int getParameterCount()
public KeyValue<Class,Object> getParameter(int index)
index - The index of the parameter in the method to be executed.public void execute()