All Downloads are FREE. Search and download functionalities are using the official Maven repository.

br.com.objectos.jabuticava.duplicata.MustachesGuice Maven / Gradle / Ivy

The newest version!
/*
 * MustachesGuice.java criado em 07/05/2013
 * 
 * Propriedade de Objectos Fábrica de Software LTDA.
 * Reprodução parcial ou total proibida.
 */
package br.com.objectos.jabuticava.duplicata;

import com.github.mustachejava.Mustache;
import com.github.mustachejava.MustacheFactory;
import com.google.inject.Inject;

/**
 * @author [email protected] (Edenir Norberto Anschau)
 */
class MustachesGuice implements Mustaches {

  private final WayDuplicataConfig config;

  @Inject
  public MustachesGuice(WayDuplicataConfig config) {
    this.config = config;
  }

  @Override
  public Mustache getDuplicata() {
    MustacheFactory factory = config.getMustacheFactory();
    return factory.compile("duplicata.mustache");
  }

  @Override
  public Mustache getDuplicataPage() {
    MustacheFactory factory = config.getMustacheFactory();
    return factory.compile("duplicata-page.mustache");
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy