Interface EvaluationFactory
- All Known Implementing Classes:
EvaluationFactoryImpl
public interface EvaluationFactory
Factory to create
PromotionEvaluation
instances
for different evaluation situations.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptioncreateEvaluation
(Input input) create a collection of evaluations for a specificInput
createEvaluation
(InputData data) create an evaluation for a specificInputData
createEvaluations
(Evaluation evaluation) create a collection of evaluations for a specificEvaluation
createPromotionFromScaffold
(EvaluationFactory.PromotionScaffold promotionScaffold) create an evaluation from previously setup datadefault List
<EvaluationFactory.PromotionScaffold> createPromotionScaffolds
(Evaluation rootEvaluation) createPromotionScaffolds
(Evaluation rootEvaluation, Predicate<Entity> participantFilter) gather all information needed to buildPromotionEvaluation
for aEvaluation
this can be used for instance when wanting to use PromotionEvaluations in different persist contexts, since no Entities are used herecreatePromotionsFromScaffolds
(Iterable<EvaluationFactory.PromotionScaffold> promotionScaffolds) create evaluations from previously setup data
-
Method Details
-
createEvaluation
create an evaluation for a specificInputData
-
createEvaluations
create a collection of evaluations for a specificEvaluation
-
createEvaluation
create a collection of evaluations for a specificInput
-
createPromotionScaffolds
default List<EvaluationFactory.PromotionScaffold> createPromotionScaffolds(Evaluation rootEvaluation) - See Also:
-
createPromotionScaffolds
List<EvaluationFactory.PromotionScaffold> createPromotionScaffolds(Evaluation rootEvaluation, Predicate<Entity> participantFilter) gather all information needed to buildPromotionEvaluation
for aEvaluation
this can be used for instance when wanting to use PromotionEvaluations in different persist contexts, since no Entities are used here -
createPromotionFromScaffold
PromotionEvaluation createPromotionFromScaffold(EvaluationFactory.PromotionScaffold promotionScaffold) create an evaluation from previously setup data -
createPromotionsFromScaffolds
List<PromotionEvaluation> createPromotionsFromScaffolds(Iterable<EvaluationFactory.PromotionScaffold> promotionScaffolds) create evaluations from previously setup data
-