Package br.com.objectos.way.duplicata

Source Code of br.com.objectos.way.duplicata.MustachesGuice

/*
* 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.way.duplicata;

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

/**
* @author edenir.anschau@objectos.com.br (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");
  }

}
TOP

Related Classes of br.com.objectos.way.duplicata.MustachesGuice

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.