com.ibm.websphere.brb.strategy
Class ReturnAllCombiningStrategy

java.lang.Object
  extended bycom.ibm.websphere.brb.strategy.ReturnAllCombiningStrategy
All Implemented Interfaces:
CombiningStrategy, java.io.Serializable

public class ReturnAllCombiningStrategy
extends java.lang.Object
implements CombiningStrategy, java.io.Serializable

Returns an array containing the results from all of the rules. The length of the array will be equal to the number of rules that were fired. The results are returned in the order in which the rules were fired. Note that an array of length one is returned if only one result is given. Note also that each element in the returned array can be any object type, including an array. In other words, one of the fired rules could have returned an array of results.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.ibm.websphere.brb.CombiningStrategy
RETURN_ALL, RETURN_AND, RETURN_FIRST, RETURN_LAST, RETURN_OR, THROW_VIOLATION
 
Constructor Summary
ReturnAllCombiningStrategy()
           
 
Method Summary
 java.lang.Object combineResults(TriggerPoint tp, java.lang.Object[] results)
          Returns an array containing the results from all of the rules, one array element per rule.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReturnAllCombiningStrategy

public ReturnAllCombiningStrategy()
Method Detail

combineResults

public java.lang.Object combineResults(TriggerPoint tp,
                                       java.lang.Object[] results)
Returns an array containing the results from all of the rules, one array element per rule.

Specified by:
combineResults in interface CombiningStrategy
Parameters:
tp - the trigger point which is used to make this call
results - the list of results of firing the rules
Returns:
The combined result of the rules fired on this TriggerPoint call. Any type of object can be returned as the result.