SPT Core API

com.sptci.echo2
Class Executor<S>

java.lang.Object
  extended by com.sptci.echo2.Executor<S>
Type Parameters:
S - The class name of the source object that spawned this view.
Direct Known Subclasses:
Confirmation.Executor

public class Executor<S>
extends Object

The executor used to execute the desired action after user confirmation. You must use the addParameter(java.lang.Class, java.lang.Object) method if the method you specified requires parameters.

Copyright 2006 Sans Pareil Technologies, Inc.

Since:
2007-11-07
Version:
$Id: Executor.java 4553 2008-12-24 10:34:16Z rakesh $
Author:
Rakesh Vidyadharan 2006-03-01

Constructor Summary
Executor(S source, String methodName)
          Create a new instance of the class with the specified parameters
 
Method Summary
 void addParameter(Class cls, Object object)
          Add the specified source and class combination to args.
 void execute()
          Execute the methodName on the source with the args parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Executor

public Executor(S source,
                String methodName)
Create a new instance of the class with the specified parameters

Parameters:
source - The source to set.
methodName - The methodName to set.
Method Detail

addParameter

public void addParameter(Class cls,
                         Object object)
Add the specified source and class combination to 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.

Parameters:
cls - The class of the parameter
object - The parameter value

execute

public void execute()
Execute the methodName on the source with the args parameters.

See Also:
ReflectionUtility.fetchMethod( Object, String, Class[] )

SPT Core API