|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITemplateResourceLoader
Defines the behavior of a template resource loader
| Method Summary | |
|---|---|
RythmEngine |
getEngine()
|
String |
getResourceLoaderRoot()
Return root path of this resource loader |
ITemplateResource |
load(String path)
Load template resource by path |
void |
scan(TemplateResourceManager manager)
Scan the folder and try to load all template files under the folder. |
void |
setEngine(RythmEngine engine)
|
TemplateClass |
tryLoadTemplate(String tmplName,
RythmEngine engine,
TemplateClass callerTemplateClass)
Try to load a template tag with tag name. |
| Method Detail |
|---|
void setEngine(RythmEngine engine)
RythmEngine getEngine()
String getResourceLoaderRoot()
ITemplateResource load(String path)
path -
TemplateClass tryLoadTemplate(String tmplName,
RythmEngine engine,
TemplateClass callerTemplateClass)
tmplName - engine - callerTemplateClass -
void scan(TemplateResourceManager manager)
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
manager - the resource manager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||