@Singleton public class MustacheSerializer extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) Configuration |
configuration |
private com.github.mustachejava.MustacheFactory |
mustacheFactory |
private boolean |
shouldCacheTemplates |
| Constructor and Description |
|---|
MustacheSerializer() |
| Modifier and Type | Method and Description |
|---|---|
private com.github.mustachejava.MustacheFactory |
createMustacheFactory() |
private String |
formatFileName(String originalTemplateName) |
void |
readConfiguration() |
String |
serialize(MustacheTemplate object) |
void |
serialize(MustacheTemplate object,
Writer writer) |
private com.github.mustachejava.MustacheFactory mustacheFactory
private boolean shouldCacheTemplates
@Provided Configuration configuration
@PostConstruct public void readConfiguration()
public String serialize(MustacheTemplate object)
public void serialize(MustacheTemplate object, Writer writer)
private com.github.mustachejava.MustacheFactory createMustacheFactory()
Copyright © 2016. All rights reserved.