@Configuration @ConditionalOnClass(value=com.samskivert.mustache.Mustache.class) @EnableConfigurationProperties(value=MustacheProperties.class) public class MustacheAutoConfiguration extends Object
Auto-configuration
for Mustache.Modifier and Type | Class and Description |
---|---|
protected static class |
MustacheAutoConfiguration.MustacheWebConfiguration |
Constructor and Description |
---|
MustacheAutoConfiguration(MustacheProperties mustache,
Environment environment,
ApplicationContext applicationContext) |
Modifier and Type | Method and Description |
---|---|
void |
checkTemplateLocationExists() |
com.samskivert.mustache.Mustache.Compiler |
mustacheCompiler(com.samskivert.mustache.Mustache.TemplateLoader mustacheTemplateLoader) |
MustacheResourceTemplateLoader |
mustacheTemplateLoader() |
public MustacheAutoConfiguration(MustacheProperties mustache, Environment environment, ApplicationContext applicationContext)
@PostConstruct public void checkTemplateLocationExists()
@Bean @ConditionalOnMissingBean(value=com.samskivert.mustache.Mustache.Compiler.class) public com.samskivert.mustache.Mustache.Compiler mustacheCompiler(com.samskivert.mustache.Mustache.TemplateLoader mustacheTemplateLoader)
@Bean @ConditionalOnMissingBean(value=com.samskivert.mustache.Mustache.TemplateLoader.class) public MustacheResourceTemplateLoader mustacheTemplateLoader()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.