public abstract class AbstractTemplateLoader extends java.lang.Object implements TemplateLoader
Strategy interface for loading resources from class path, file system, etc.
A TemplateLoader
provides two important properties:
'.hbs'
DEFAULT_PREFIX, DEFAULT_SUFFIX
Constructor and Description |
---|
AbstractTemplateLoader() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPrefix() |
java.lang.String |
getSuffix() |
java.lang.String |
resolve(java.lang.String uri)
Resolve the uri to an absolute location.
|
void |
setPrefix(java.lang.String prefix)
Set the prefix that gets prepended to view names when building a URI.
|
void |
setSuffix(java.lang.String suffix)
Set the suffix that gets appended to view names when building a URI.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
sourceAt
public java.lang.String resolve(java.lang.String uri)
resolve
in interface TemplateLoader
uri
- The candidate uri.public void setPrefix(java.lang.String prefix)
setPrefix
in interface TemplateLoader
prefix
- The prefix that gets prepended to view names when building a
URI.public void setSuffix(java.lang.String suffix)
setSuffix
in interface TemplateLoader
suffix
- The suffix that gets appended to view names when building a
URI.public java.lang.String getPrefix()
getPrefix
in interface TemplateLoader
public java.lang.String getSuffix()
getSuffix
in interface TemplateLoader
Copyright © 2010 - 2020 Adobe. All Rights Reserved