Package com.manning.siia.kitchen.domain

Examples of com.manning.siia.kitchen.domain.Meal.cook()


  @Aggregator
  public Meal prepareMeal(List<Message<Product>> products) {
    Recipe recipe = (Recipe) products.get(0).getHeaders().get("recipe");
    Meal meal = new Meal(recipe);
    for (Message<Product> message : products) {
      meal.cook(message.getPayload());
    }
    return meal;
  }

  @CorrelationStrategy
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.