org.drools.spring.pojorule
Class PojoConsequence

java.lang.Object
  extended by org.drools.spring.pojorule.PojoConsequence
All Implemented Interfaces:
java.io.Serializable, Consequence, RuleComponent

public class PojoConsequence
extends java.lang.Object
implements Consequence

See Also:
Serialized Form

Constructor Summary
PojoConsequence(RuleReflectMethod[] ruleMethods)
           
 
Method Summary
 java.lang.String[] getMethodNames()
           
 void invoke(Tuple tuple)
          Execute the consequence for the supplied matching Tuple.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PojoConsequence

public PojoConsequence(RuleReflectMethod[] ruleMethods)
Method Detail

getMethodNames

public java.lang.String[] getMethodNames()

invoke

public void invoke(Tuple tuple)
            throws ConsequenceException
Description copied from interface: Consequence
Execute the consequence for the supplied matching Tuple.

Specified by:
invoke in interface Consequence
Parameters:
tuple - The matching tuple.
Throws:
ConsequenceException - If an error occurs while attempting to invoke the consequence.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object