org.mentawai.coc
Interface ConsequenceProvider

All Known Implementing Classes:
DefaultConsequenceProvider, ForwardConsequenceProvider, InnerActionConsequenceProvider, OldAutoViewConsequenceProvider

public interface ConsequenceProvider

Create a Consequence based on a Convention.

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

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.
 

Method Detail

getConsequence

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.

Parameters:
action - the name of the action
actionClass - the class representing the action
result - 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 © 2013. All Rights Reserved.