org.openwms.core.service.voter
Interface DecisionVoter<T extends Vote>

Type Parameters:
T - Any type of Vote
All Known Implementing Classes:
TargetAcceptedVoter

public interface DecisionVoter<T extends Vote>

A DecisionVoter is asked to vote for a business action.

Since:
0.1
Version:
$Revision: 1538 $
Author:
Heiko Scherrer

Method Summary
 void voteFor(T vote)
          The implementation has to vote for a certain vote on particular rules that are implemented by the voter.
 

Method Detail

voteFor

void voteFor(T vote)
             throws DeniedException
The implementation has to vote for a certain vote on particular rules that are implemented by the voter.

Parameters:
vote - The vote to vote for
Throws:
DeniedException - is thrown when the voter cannot vote for the action


Copyright © 2005-2011 openwms.org. All Rights Reserved.