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 specificInputcreateEvaluation(InputData data) create an evaluation for a specificInputDatacreateEvaluations(Evaluation evaluation) create a collection of evaluations for a specificEvaluationcreatePromotionFromScaffold(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 buildPromotionEvaluationfor aEvaluationthis 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 buildPromotionEvaluationfor aEvaluationthis 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
-