Package com.github.jknack.handlebars.io
Class ReloadableTemplateSource
- java.lang.Object
-
- com.github.jknack.handlebars.io.AbstractTemplateSource
-
- com.github.jknack.handlebars.io.ForwardingTemplateSource
-
- com.github.jknack.handlebars.io.ReloadableTemplateSource
-
- All Implemented Interfaces:
TemplateSource
public class ReloadableTemplateSource extends ForwardingTemplateSource
Template source with auto-reload supports. Auto-reload is done viaForwardingTemplateSource.lastModified()
. SeeTemplateCache.setReload(boolean)
- Since:
- 2.3.0
-
-
Constructor Summary
Constructors Constructor Description ReloadableTemplateSource(TemplateSource source)
Wrap a template source and implementequals(Object)
andhashCode()
usingForwardingTemplateSource.lastModified()
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
-
Methods inherited from class com.github.jknack.handlebars.io.ForwardingTemplateSource
content, filename, lastModified
-
Methods inherited from class com.github.jknack.handlebars.io.AbstractTemplateSource
toString
-
-
-
-
Constructor Detail
-
ReloadableTemplateSource
public ReloadableTemplateSource(TemplateSource source)
Wrap a template source and implementequals(Object)
andhashCode()
usingForwardingTemplateSource.lastModified()
.- Parameters:
source
- A template source.
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractTemplateSource
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classAbstractTemplateSource
-
-