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.Collectorto 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.VariableFetchercreateFetcher(Object ctx, String name)voidsetEnvironment(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:
setEnvironmentin interfaceorg.springframework.context.EnvironmentAware
createFetcher
public com.samskivert.mustache.Mustache.VariableFetcher createFetcher(Object ctx, String name)
- Specified by:
createFetcherin interfacecom.samskivert.mustache.Mustache.Collector- Overrides:
createFetcherin classcom.samskivert.mustache.DefaultCollector