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, waitgetResourceLoaderRoot, loadprotected static ILogger logger
public RythmEngine getEngine()
getEngine in interface ITemplateResourceLoaderpublic void setEngine(RythmEngine engine)
setEngine in interface ITemplateResourceLoaderpublic 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)
ITemplateResourceLoadertryLoadTemplate in interface ITemplateResourceLoaderpublic void scan(TemplateResourceManager manager)
ITemplateResourceLoaderresource 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 ITemplateResourceLoadermanager - the resource managerCopyright © 2015. All Rights Reserved.