org.rythmengine.extension
Interface ITemplateResourceLoader


public interface ITemplateResourceLoader

Created by IntelliJ IDEA. User: luog Date: 27/01/12 Time: 7:45 AM To change this template use File | Settings | File Templates.


Method Summary
 String getFullName(org.rythmengine.internal.compiler.TemplateClass tc, RythmEngine engine)
          Return a template's tag name in full notation
 ITemplateResource load(String path)
          Load template resource by path
 void scan(String root, TemplateResourceManager manager)
          Scan the folder and try to load all template files under the folder.
 org.rythmengine.internal.compiler.TemplateClass tryLoadTemplate(String tmplName, RythmEngine engine, org.rythmengine.internal.compiler.TemplateClass callerTemplateClass)
          Try to load a template tag with tag name.
 

Method Detail

load

ITemplateResource load(String path)
Load template resource by path

Parameters:
path -
Returns:
Loaded template resource

tryLoadTemplate

org.rythmengine.internal.compiler.TemplateClass tryLoadTemplate(String tmplName,
                                                                RythmEngine engine,
                                                                org.rythmengine.internal.compiler.TemplateClass callerTemplateClass)
Try to load a template tag with tag name.

Parameters:
tmplName -
engine -
callerTemplateClass -
Returns:
template class if found, or null if not found

getFullName

String getFullName(org.rythmengine.internal.compiler.TemplateClass tc,
                   RythmEngine engine)
Return a template's tag name in full notation

Parameters:
tc -
engine -
Returns:
the tag name

scan

void scan(String root,
          TemplateResourceManager manager)
Scan the folder and try to load all template files under the folder. Once a resource is located, it should be passed to the resource manager by TemplateResourceManager.resourceLoaded(ITemplateResource) call

Parameters:
root - the root folder


Copyright © 2013. All Rights Reserved.