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(java.lang.String action, java.lang.Class<? extends java.lang.Object> actionClass, java.lang.String result, java.lang.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(java.lang.String action,
                           java.lang.Class<? extends java.lang.Object> actionClass,
                           java.lang.String result,
                           java.lang.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 © 2005 Mentawai Team. All Rights Reserved.