org.mentawai.coc
Class ForwardConsequenceProvider

java.lang.Object
  extended by org.mentawai.coc.ForwardConsequenceProvider
All Implemented Interfaces:
ConsequenceProvider

public class ForwardConsequenceProvider
extends Object
implements ConsequenceProvider

A ConsequenceProvider that provides ForwardConsequences based on the given convetion: If the execute() method was invoked: /(the name of the action)/(the result of the action's execution).jsp If a inner action was invojed: /(the name of the action)/(the name of the inner action)/(the result of the action's execution).jsp

Author:
Rubem Azenha (rubem.azenha@gmail.com)

Constructor Summary
ForwardConsequenceProvider()
           
 
Method Summary
 Consequence getConsequence(String action, Class<? extends Object> actionClass, String result, String innerAction)
          Create an consequence based on the convention described in the Class javadoc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForwardConsequenceProvider

public ForwardConsequenceProvider()
Method Detail

getConsequence

public Consequence getConsequence(String action,
                                  Class<? extends Object> actionClass,
                                  String result,
                                  String innerAction)
Create an consequence based on the convention described in the Class javadoc.

Specified by:
getConsequence in interface ConsequenceProvider
Parameters:
action - the name of the action
result - the result of the actions execution.
innerAction - the inner action called or null if the execute() method was called.
actionClass - the class representing the action
Returns:
the Consequence created by convention.


Copyright © 2013. All Rights Reserved.