public class ClasspathResourceLoader extends ResourceLoaderBase
A simple classpath loader
logger| Constructor and Description |
|---|
ClasspathResourceLoader(RythmEngine engine,
String root) |
| Modifier and Type | Method and Description |
|---|---|
String |
getResourceLoaderRoot()
Return root path of this resource loader
|
ITemplateResource |
load(String path)
Load template resource by path
|
getDefaultEngine, getEngine, getFullName, scan, setEngine, tryLoadTemplatepublic ClasspathResourceLoader(RythmEngine engine, String root)
public String getResourceLoaderRoot()
ITemplateResourceLoaderReturn root path of this resource loader
public ITemplateResource load(String path)
ITemplateResourceLoaderLoad template resource by path
Copyright © 2017–2021 OSGL (Open Source General Library). All rights reserved.