类 MustacheEnvironmentCollector
- java.lang.Object
- com.samskivert.mustache.BasicCollector
- com.samskivert.mustache.DefaultCollector
- org.springframework.boot.autoconfigure.mustache.MustacheEnvironmentCollector
- 所有已实现的接口:
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.- 从以下版本开始:
- 1.2.2
构造器概要
构造器 构造器 说明 MustacheEnvironmentCollector()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 com.samskivert.mustache.Mustache.VariableFetchercreateFetcher(Object ctx, String name)voidsetEnvironment(org.springframework.core.env.Environment environment)
构造器详细资料
MustacheEnvironmentCollector
public MustacheEnvironmentCollector()
方法详细资料
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment)
- 指定者:
setEnvironment在接口中org.springframework.context.EnvironmentAware
createFetcher
public com.samskivert.mustache.Mustache.VariableFetcher createFetcher(Object ctx, String name)
- 指定者:
createFetcher在接口中com.samskivert.mustache.Mustache.Collector- 覆盖:
createFetcher在类中com.samskivert.mustache.DefaultCollector