com.ibm.websphere.brb.strategy
Class ReturnAllCombiningStrategy
java.lang.Object
|
+--com.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
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 |
ReturnAllCombiningStrategy
public ReturnAllCombiningStrategy()
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
- Following copied from interface:
com.ibm.websphere.brb.CombiningStrategy
- Parameters:
tp
- the trigger point which is used to make this callresults
- 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.
- Throws:
BusinessRuleBeansException
- if any exceptions occur