org.mentawai.coc
Class ForwardConsequenceProvider
java.lang.Object
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)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ForwardConsequenceProvider
public ForwardConsequenceProvider()
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 actionresult - 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 © 2012. All Rights Reserved.