public class FileResourceLoader extends ResourceLoaderBase
logger| Constructor and Description |
|---|
FileResourceLoader(RythmEngine engine,
File root) |
| Modifier and Type | Method and Description |
|---|---|
String |
getResourceLoaderRoot()
Return root path of this resource loader
|
File |
getRoot() |
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.
|
getDefaultEngine, getEngine, getFullName, setEngine, tryLoadTemplatepublic FileResourceLoader(RythmEngine engine, File root)
public ITemplateResource load(String path)
ITemplateResourceLoaderpublic String getResourceLoaderRoot()
ITemplateResourceLoaderpublic File getRoot()
public 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 ITemplateResourceLoaderscan in class ResourceLoaderBasemanager - the resource managerCopyright © 2015. All Rights Reserved.