com.groupbyinc.flux.common.github.mustachejava.DefaultMustacheFactory.class Maven / Gradle / Ivy
???? 4A Ecom/groupbyinc/flux/common/github/mustachejava/DefaultMustacheFactory java/lang/Object >com/groupbyinc/flux/common/github/mustachejava/MustacheFactory DefaultMustacheFactory.java Gcom/groupbyinc/flux/common/github/mustachejava/DefaultMustacheFactory$1 %java/lang/invoke/MethodHandles$Lookup
java/lang/invoke/MethodHandles Lookup
mustacheCache (Ljava/util/concurrent/ConcurrentHashMap; uLjava/util/concurrent/ConcurrentHashMap; oh >Lcom/groupbyinc/flux/common/github/mustachejava/ObjectHandler; mc ?Lcom/groupbyinc/flux/common/github/mustachejava/MustacheParser;
templateCache ?Ljava/util/concurrent/ConcurrentHashMap; recursionLimit I mustacheResolver ALcom/groupbyinc/flux/common/github/mustachejava/MustacheResolver; es &Ljava/util/concurrent/ExecutorService; partialCache Ljava/lang/ThreadLocal; uLjava/lang/ThreadLocal;>; ()V ! "
# createMustacheCache *()Ljava/util/concurrent/ConcurrentHashMap; % &
' ) Ncom/groupbyinc/flux/common/github/mustachejava/reflect/ReflectionObjectHandler +
, # . =com/groupbyinc/flux/common/github/mustachejava/MustacheParser 0 C(Lcom/groupbyinc/flux/common/github/mustachejava/MustacheFactory;)V ! 2
1 3 5 createLambdaCache 7 &
8 : < J(Lcom/groupbyinc/flux/common/github/mustachejava/DefaultMustacheFactory;)V ! >
? A Gcom/groupbyinc/flux/common/github/mustachejava/resolver/DefaultResolver C
D # F this GLcom/groupbyinc/flux/common/github/mustachejava/DefaultMustacheFactory; D(Lcom/groupbyinc/flux/common/github/mustachejava/MustacheResolver;)V (Ljava/lang/String;)V ! K
D L resourceRoot Ljava/lang/String; (Ljava/io/File;)V ! P
D Q fileRoot Ljava/io/File; resolvePartialPath J(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; / W java/lang/String Y
startsWith (Ljava/lang/String;)Z [ \
Z ] java/lang/StringBuilder _
` # append -(Ljava/lang/String;)Ljava/lang/StringBuilder; b c
` d toString ()Ljava/lang/String; f g
` h endsWith j \
Z k java/io/File m
n L getPath p g
n q ensureForwardSlash &(Ljava/lang/String;)Ljava/lang/String; s t
u dir name extension filePath path replace (CC)Ljava/lang/String; | }
Z ~ createMustacheVisitor B()Lcom/groupbyinc/flux/common/github/mustachejava/MustacheVisitor; Ecom/groupbyinc/flux/common/github/mustachejava/DefaultMustacheVisitor ?
? ? getReader $(Ljava/lang/String;)Ljava/io/Reader; ?com/groupbyinc/flux/common/github/mustachejava/MustacheResolver ? ? ? ? ? Hcom/groupbyinc/flux/common/github/mustachejava/MustacheNotFoundException ?
? L java/io/Reader ? resourceName reader Ljava/io/Reader; encode %(Ljava/lang/String;Ljava/io/Writer;)V ?com/groupbyinc/flux/common/github/mustachejava/util/HtmlEscaper ? escape ? ?
? ? value writer Ljava/io/Writer; getObjectHandler @()Lcom/groupbyinc/flux/common/github/mustachejava/ObjectHandler; setObjectHandler A(Lcom/groupbyinc/flux/common/github/mustachejava/ObjectHandler;)V getExecutorService (()Ljava/util/concurrent/ExecutorService; ? setExecutorService )(Ljava/util/concurrent/ExecutorService;)V getFragment w(Lcom/groupbyinc/flux/common/github/mustachejava/FragmentKey;)Lcom/groupbyinc/flux/common/github/mustachejava/Mustache; getFragmentCacheFunction ()Ljava/util/function/Function; ? ?
? &java/util/concurrent/ConcurrentHashMap ? computeIfAbsent C(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object; ? ?
? ? 7com/groupbyinc/flux/common/github/mustachejava/Mustache ? init ? " ? ? templateKey