public abstract class ResourceLoaderBase extends Object implements ITemplateResourceLoader
ITemplateResourceLoader
Constructor and Description |
---|
ResourceLoaderBase() |
Modifier and Type | Method and Description |
---|---|
protected RythmEngine |
getDefaultEngine() |
RythmEngine |
getEngine() |
String |
getFullName(org.rythmengine.internal.compiler.TemplateClass tc) |
void |
scan(TemplateResourceManager manager)
Scan the folder and try to load all template files under the folder.
|
void |
setEngine(RythmEngine engine) |
org.rythmengine.internal.compiler.TemplateClass |
tryLoadTemplate(String tmplName,
RythmEngine engine,
org.rythmengine.internal.compiler.TemplateClass callerClass,
ICodeType codeType)
Try to load a template tag with tag name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResourceLoaderRoot, load
protected static ILogger logger
public RythmEngine getEngine()
getEngine
in interface ITemplateResourceLoader
public void setEngine(RythmEngine engine)
setEngine
in interface ITemplateResourceLoader
public String getFullName(org.rythmengine.internal.compiler.TemplateClass tc)
protected RythmEngine getDefaultEngine()
public org.rythmengine.internal.compiler.TemplateClass tryLoadTemplate(String tmplName, RythmEngine engine, org.rythmengine.internal.compiler.TemplateClass callerClass, ICodeType codeType)
ITemplateResourceLoader
tryLoadTemplate
in interface ITemplateResourceLoader
public void scan(TemplateResourceManager manager)
ITemplateResourceLoader
resource manager
by
TemplateResourceManager.resourceLoaded(ITemplateResource)
call
Note it is up to the loader implementation to decide the root path where to start the scan
scan
in interface ITemplateResourceLoader
manager
- the resource managerCopyright © 2015. All Rights Reserved.