com.waveset.object
Class DefaultRuleExecutor

java.lang.Object
  extended bycom.waveset.object.DefaultRuleExecutor
All Implemented Interfaces:
RuleExecutor

public class DefaultRuleExecutor
extends java.lang.Object
implements RuleExecutor

Implementation of RuleExecutor which provides a default implementation which has the following behavior:


Field Summary
static java.lang.String code_id
           
 
Constructor Summary
DefaultRuleExecutor(LighthouseContext context)
           
 
Method Summary
 java.lang.Object callRule(ExState state, java.lang.String name, java.util.Map args)
          Lookup a rule by name and call it with the given arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values
Constructor Detail

DefaultRuleExecutor

public DefaultRuleExecutor(LighthouseContext context)
Method Detail

callRule

public java.lang.Object callRule(ExState state,
                                 java.lang.String name,
                                 java.util.Map args)
                          throws WavesetException
Description copied from interface: RuleExecutor
Lookup a rule by name and call it with the given arguments. Allow an existing ExState to be passed in to provide variable resolution services, typically a FormState object.

Specified by:
callRule in interface RuleExecutor
Throws:
WavesetException