
br.com.objectos.jabuticava.duplicata.MustachesGuice Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jabuticava-duplicata Show documentation
Show all versions of jabuticava-duplicata Show documentation
Geração de duplicatas. Simples.
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