wt.rule.algorithm
Class RuleAlgorithmHelper

java.lang.Object
  extended bywt.rule.algorithm.RuleAlgorithmHelper

public class RuleAlgorithmHelper
extends Object

This class provides utility methods that are used to work with algoritms.

Supported API: false

Extendable: false


Field Summary
private static String CLASSNAME
           
private static String RESOURCE
           
 
Constructor Summary
RuleAlgorithmHelper()
           
 
Method Summary
static Object calculate(Class algoClass, Object[] args, WTContainerRef container)
          Invoke the algorithm defined by the spedified algoClass using specified args.
static Object calculate(String className, Object[] args, WTContainerRef container)
          Invoke the algorithm with the spedified className using specified args.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Constructor Detail

RuleAlgorithmHelper

public RuleAlgorithmHelper()
Method Detail

calculate

public static Object calculate(String className,
                               Object[] args,
                               WTContainerRef container)
                        throws ClassNotFoundException,
                               InstantiationException,
                               IllegalAccessException,
                               WTException
Invoke the algorithm with the spedified className using specified args.

Supported API: false

Parameters:
className - The fully qualified class name of the algorithm.
args - the arguments for the algorithm
container - the container to use for object lookups
Returns:
Object
Throws:
ClassNotFoundException
InstantiationException
IllegalAccessException
WTException

calculate

public static Object calculate(Class algoClass,
                               Object[] args,
                               WTContainerRef container)
                        throws InstantiationException,
                               IllegalAccessException,
                               WTException
Invoke the algorithm defined by the spedified algoClass using specified args.

Supported API: false

Parameters:
algoClass - the algorithm class to invoke
args - the arguments for the algorithm
container - the container to use for object lookups
Returns:
Object
Throws:
InstantiationException
IllegalAccessException
WTException