public class MustacheEnvironmentCollector extends com.samskivert.mustache.DefaultCollector implements EnvironmentAware
Mustache.Collector to expose properties from the Spring Environment.BOOLEAN_ARRAY_HELPER, BYTE_ARRAY_HELPER, CHAR_ARRAY_HELPER, CUSTOM_FETCHER, DOUBLE_ARRAY_HELPER, FLOAT_ARRAY_HELPER, INT_ARRAY_HELPER, ITER_FETCHER, LIST_FETCHER, LONG_ARRAY_HELPER, MAP_FETCHER, OBJECT_ARRAY_HELPER, SHORT_ARRAY_HELPER| Constructor and Description |
|---|
MustacheEnvironmentCollector() |
| Modifier and Type | Method and Description |
|---|---|
com.samskivert.mustache.Mustache.VariableFetcher |
createFetcher(Object ctx,
String name)
Creates a fetcher for a so-named variable in the supplied context object, which will
never be null.
|
void |
setEnvironment(Environment environment) |
public void setEnvironment(Environment environment)
setEnvironment in interface EnvironmentAwarepublic com.samskivert.mustache.Mustache.VariableFetcher createFetcher(Object ctx, String name)
com.samskivert.mustache.Mustache.Collectoroctx.getClass().equals(nctx.getClass().createFetcher in interface com.samskivert.mustache.Mustache.CollectorcreateFetcher in class com.samskivert.mustache.DefaultCollector