Class MustacheEnvironmentCollector
- java.lang.Object
- com.samskivert.mustache.BasicCollector
- com.samskivert.mustache.DefaultCollector
- org.springframework.boot.autoconfigure.mustache.MustacheEnvironmentCollector
- All Implemented Interfaces:
com.samskivert.mustache.Mustache.Collector
,org.springframework.beans.factory.Aware
,org.springframework.context.EnvironmentAware
public class MustacheEnvironmentCollector extends com.samskivert.mustache.DefaultCollector implements org.springframework.context.EnvironmentAware
MustacheMustache.Collector
to expose properties from the SpringEnvironment
.- Since:
- 1.2.2
Constructor Summary
Constructors Constructor Description MustacheEnvironmentCollector()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.samskivert.mustache.Mustache.VariableFetcher
createFetcher(Object ctx, String name)
void
setEnvironment(org.springframework.core.env.Environment environment)
Constructor Detail
MustacheEnvironmentCollector
public MustacheEnvironmentCollector()
Method Detail
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment)
- Specified by:
setEnvironment
in interfaceorg.springframework.context.EnvironmentAware
createFetcher
public com.samskivert.mustache.Mustache.VariableFetcher createFetcher(Object ctx, String name)
- Specified by:
createFetcher
in interfacecom.samskivert.mustache.Mustache.Collector
- Overrides:
createFetcher
in classcom.samskivert.mustache.DefaultCollector