org.mentawai.coc
Class OldAutoViewConsequenceProvider
java.lang.Object
org.mentawai.coc.OldAutoViewConsequenceProvider
- All Implemented Interfaces:
- ConsequenceProvider
public class OldAutoViewConsequenceProvider
- extends Object
- implements ConsequenceProvider
This consequence provider was build for backward compatibility with the old
auto view schema, in other words, if you were using the old auto view schema
you can use the consequence provider to simulate the same behaviour when
choosing your consequences.
- Author:
- Sergio Oliveira Jr.
|
Method Summary |
Consequence |
getConsequence(String action,
Class<? extends Object> actionClass,
String result,
String innerAction)
Creates a consequence based on a convention, using the name of the
executed action, the result of the action's execution and the executed
inner action. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OldAutoViewConsequenceProvider
public OldAutoViewConsequenceProvider()
getConsequence
public Consequence getConsequence(String action,
Class<? extends Object> actionClass,
String result,
String innerAction)
- Description copied from interface:
ConsequenceProvider
- Creates a consequence based on a convention, using the name of the
executed action, the result of the action's execution and the executed
inner action.
- Specified by:
getConsequence in interface ConsequenceProvider
- Parameters:
action - the name of the actionactionClass - the class representing the actionresult - the result of the actions execution.innerAction - the inner action called or null if the execute() method was
called.
- Returns:
- the Consequence created by convention.
Copyright © 2012. All Rights Reserved.