Class NashornCompiler
- java.lang.Object
-
- com.github.mjeanroy.springmvc.view.mustache.core.AbstractMustacheCompiler
-
- com.github.mjeanroy.springmvc.view.mustache.nashorn.NashornCompiler
-
- All Implemented Interfaces:
MustacheCompiler
@Deprecated public final class NashornCompiler extends AbstractMustacheCompiler implements MustacheCompiler
Deprecated.Nashorn will be removed after jdk 11, so nashorn engine ill be removed in the next major version.Mustache compiler using nashorn engine to evaluation templates. Internal implementation is original javascript mustache implementation.
-
-
Field Summary
-
Fields inherited from class com.github.mjeanroy.springmvc.view.mustache.core.AbstractMustacheCompiler
templateLoader
-
-
Constructor Summary
Constructors Constructor Description NashornCompiler(MustacheTemplateLoader templateLoader, MustacheEngine engine)
Deprecated.Create Nashorn Compiler.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected MustacheTemplate
doCompile(String name)
Deprecated.Process template compilation.boolean
equals(Object o)
Deprecated.int
hashCode()
Deprecated.String
toString()
Deprecated.-
Methods inherited from class com.github.mjeanroy.springmvc.view.mustache.core.AbstractMustacheCompiler
addTemporaryPartialAliases, compile, getPrefix, getSuffix, removeTemporaryPartialAliases, setPrefix, setSuffix
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.github.mjeanroy.springmvc.view.mustache.MustacheCompiler
addTemporaryPartialAliases, compile, getPrefix, getSuffix, removeTemporaryPartialAliases, setPrefix, setSuffix
-
-
-
-
Constructor Detail
-
NashornCompiler
public NashornCompiler(MustacheTemplateLoader templateLoader, MustacheEngine engine)
Deprecated.Create Nashorn Compiler.- Parameters:
templateLoader
- Template Loader.engine
- Mustache JavaScript engine.
-
-
Method Detail
-
doCompile
protected MustacheTemplate doCompile(String name)
Deprecated.Description copied from class:AbstractMustacheCompiler
Process template compilation. This methods should rethrows exception since it will be catches later (and a newMustacheCompilationException
will be thrown).- Specified by:
doCompile
in classAbstractMustacheCompiler
- Parameters:
name
- Template name.- Returns:
- Mustache template.
-
-