Examples of Recipe


Examples of adios.model.Recipe

     * returns a recipe for a recipe Id
     * @param id
     * @return
     */
    public Recipe getRecipe(int id){
      Recipe r=null;
      try{
        r =  recipeDao.getRecipeForId(id);
       
      }catch(Exception ex){
        Log.info("ERROR ::: getting Recipe!!!");
View Full Code Here

Examples of com.din.din.model.entities.Recipe

       
        List<KeyEntity> sublist = entry.getValue();
        if(sublist.size() > 0) {       
          List<SelectItem> selectSublist = new ArrayList<SelectItem>();
          for(KeyEntity entity : sublist) {
            Recipe recipe = (Recipe)entity;
            SelectItem item = new SelectItem(recipe, recipe.getTitle());
            selectSublist.add(item);
          }

          group.setSelectItems(selectSublist.toArray(new SelectItem[0]));
          recipeList.add(group);
View Full Code Here

Examples of com.manning.siia.kitchen.domain.Recipe

  @Autowired
  private PollableChannel test;

  @Test
  public void shouldConvertRecipeIntoIngredients() {
    Recipe recipe = RecipeObjectMother.steak();
    List<Ingredient> needed = RecipeObjectMother.steak().getIngredients();
    recipes.send(MessageBuilder.withPayload(recipe).build());
    receiveAndCheckProductMessage(needed);
    receiveAndCheckProductMessage(needed);
    receiveAndCheckProductMessage(needed);
View Full Code Here

Examples of com.mojang.ld22.crafting.Recipe

    if (len == 0) selected = 0;
    if (selected < 0) selected += len;
    if (selected >= len) selected -= len;

    if (input.attack.clicked && len > 0) {
      Recipe r = recipes.get(selected);
      r.checkCanCraft(player);
      if (r.canCraft) {
        r.deductCost(player);
        r.craft(player);
        Sound.craft.play();
      }
      for (int i = 0; i < recipes.size(); i++) {
        recipes.get(i).checkCanCraft(player);
      }
View Full Code Here

Examples of crazypants.enderio.machine.recipe.Recipe

  public void addRecipe(ItemStack input, int energyCost, RecipeOutput... output) {
    if(input == null || output == null) {
      return;
    }
    addRecipe(new Recipe(new RecipeInput(input, false), energyCost, output));
  }
View Full Code Here

Examples of digi.recipeManager.data.Recipe

    String fileName = file.getPath().replace(RecipeManager.plugin.getDataFolder().getPath() + "\\", "");
   
    log.fine("Loading '" + fileName + "' file...");
   
    BufferedReader reader = new BufferedReader(new InputStreamReader(new DataInputStream(new FileInputStream(file))));
    Recipe recipeData = new Recipe();
    String[] error;
    String line;
    currentFile = fileName;
    currentFileLine = -1; // one line behind to be more human friendly
   
View Full Code Here

Examples of fr.valtech.many2many.domain.Recipe

        _400gJambon = new RecipeIngredient();
        _400gJambon.setAmount("400g grammes");
        _400gJambon.setIngredient(jambon);

        recipe = new Recipe();
        recipe.setTitle("title");
        recipe.addRecipeIngredient(_400gJambon);

    }
View Full Code Here

Examples of org.apache.aries.blueprint.di.Recipe

        }
       
        for (String name : tmpRepo.getNames()) {
            if (repository.getInstance(name) == null) {
                LOGGER.debug("Adding new recipe {}", new Object[] { name });
                Recipe r = tmpRepo.getRecipe(name);
                if (r != null) {
                    repository.putRecipe(name, r);
                }
            } else {
                LOGGER.debug("Recipe {} is already instantiated and cannot be updated", new Object[] { name });
View Full Code Here

Examples of org.apache.aries.blueprint.di.Recipe

    private void untrackServiceReference(SatisfiableRecipe recipe, Set<String> stopped, Map<String, List<SatisfiableRecipe>> dependencies) {
        if (stopped.add(recipe.getName())) {
            for (Map.Entry<String, List<SatisfiableRecipe>> entry : dependencies.entrySet()) {
                if (entry.getValue().contains(recipe)) {
                    Recipe r = getRepository().getRecipe(entry.getKey());
                    if (r instanceof SatisfiableRecipe) {
                        untrackServiceReference((SatisfiableRecipe) r, stopped, dependencies);
                    }
                }
            }
View Full Code Here

Examples of org.apache.aries.blueprint.di.Recipe

        try {
            ComponentMetadata cmd = componentDefinitionRegistry.getComponentDefinition(bmd.getId());
            if (cmd == null || cmd != bmd) {
                throw new IllegalArgumentException(bmd.getId() + " not found in blueprint container");
            }
            Recipe r = this.getRepository().getRecipe(bmd.getId());
            if (r instanceof BeanRecipe) {
                BeanRecipe br = (BeanRecipe)r;
                if (!br.getType().isInstance(o)) {
                    throw new IllegalArgumentException("Instance class " + o.getClass().getName()
                                                       + " is not an instance of " + br.getClass());
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.