public class FileTemplateResource extends TemplateResourceBase implements ITemplateResource
Represent a file template resource
cache, isProdMode, loader, logger, nextCheckPoint| Constructor and Description |
|---|
FileTemplateResource(String path,
FileResourceLoader loader)
construct me from the givne path and loader
|
| Modifier and Type | Method and Description |
|---|---|
protected long |
defCheckInterval() |
String |
getKey()
The unique identifier used to fetch this resource by a
resource loader |
String |
getSuggestedClassName()
Propose a name of generated java class for this resource
|
boolean |
isValid()
Whether this resource is a valid resource
|
protected boolean |
isValid(File file) |
long |
lastModified() |
protected String |
reload() |
asTemplateContent, codeType, equals, getEngine, getError, getLoader, getTypeOfPath, hashCode, path2CN, refresh, setError, userCheckIntervalclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitasTemplateContent, codeType, getError, getLoader, refresh, setErrorpublic FileTemplateResource(String path, FileResourceLoader loader)
construct me from the givne path and loader
path - loader - protected long defCheckInterval()
defCheckInterval in class TemplateResourceBasepublic String getKey()
ITemplateResourceThe unique identifier used to fetch this resource by a resource loader
getKey in interface ITemplateResourcepublic long lastModified()
lastModified in class TemplateResourceBaseprotected boolean isValid(File file)
public boolean isValid()
ITemplateResourceWhether this resource is a valid resource
isValid in interface ITemplateResourceprotected String reload()
reload in class TemplateResourceBasepublic String getSuggestedClassName()
ITemplateResourcePropose a name of generated java class for this resource
getSuggestedClassName in interface ITemplateResourcegetSuggestedClassName in class TemplateResourceBaseCopyright © 2017–2021 OSGL (Open Source General Library). All rights reserved.