public class DefaultCollector extends BasicCollector
Constructor and Description |
---|
DefaultCollector() |
Modifier and Type | Method and Description |
---|---|
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.
|
<K,V> Map<K,V> |
createFetcherCache()
This should return a thread-safe map, either
Collections.synchronizedMap(java.util.Map<K, V>) called on
a standard Map implementation or something like ConcurrentHashMap . |
toIterator
public Mustache.VariableFetcher createFetcher(Object ctx, String name)
Mustache.Collector
octx.getClass().equals(nctx.getClass()
.createFetcher
in interface Mustache.Collector
createFetcher
in class BasicCollector
public <K,V> Map<K,V> createFetcherCache()
BasicCollector
Collections.synchronizedMap(java.util.Map<K, V>)
called on
a standard Map
implementation or something like ConcurrentHashMap
.createFetcherCache
in interface Mustache.Collector
createFetcherCache
in class BasicCollector
Copyright © 2016. All rights reserved.