org.springframework.boot.autoconfigure.mustache

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, Aware, EnvironmentAware


    public class MustacheEnvironmentCollector
    extends com.samskivert.mustache.DefaultCollector
    implements EnvironmentAware
    Mustache Mustache.Collector to expose properties from the Spring Environment.
    Since:
    1.2.2
    Author:
    Dave Syer, Madhura Bhave
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.samskivert.mustache.BasicCollector

        com.samskivert.mustache.BasicCollector.ArrayHelper
    • Field Summary

      • Fields inherited from class com.samskivert.mustache.BasicCollector

        BOOLEAN_ARRAY_HELPER, BYTE_ARRAY_HELPER, CHAR_ARRAY_HELPER, DOUBLE_ARRAY_HELPER, FLOAT_ARRAY_HELPER, INT_ARRAY_HELPER, ITER_FETCHER, LIST_FETCHER, LONG_ARRAY_HELPER, MAP_FETCHER, OBJECT_ARRAY_HELPER, SHORT_ARRAY_HELPER, THIS_FETCHER
    • Constructor Detail

      • MustacheEnvironmentCollector

        public MustacheEnvironmentCollector()
    • Method Detail

      • createFetcher

        public com.samskivert.mustache.Mustache.VariableFetcher createFetcher(Object ctx,
                                                                              String name)
        Specified by:
        createFetcher in interface com.samskivert.mustache.Mustache.Collector
        Overrides:
        createFetcher in class com.samskivert.mustache.DefaultCollector