|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rythmengine.resource.TemplateResourceBase
public abstract class TemplateResourceBase
Created by IntelliJ IDEA. User: luog Date: 20/01/12 Time: 11:48 PM To change this template use File | Settings | File Templates.
Field Summary | |
---|---|
protected String |
cache
|
protected static ILogger |
logger
|
protected long |
nextCheckPoint
|
Constructor Summary | |
---|---|
TemplateResourceBase()
|
|
TemplateResourceBase(RythmEngine engine)
|
Method Summary | |
---|---|
String |
asTemplateContent()
Return template content as a string. |
ICodeType |
codeType()
Return code type suggested by this resource, e.g. |
protected abstract long |
defCheckInterval()
|
protected RythmEngine |
engine()
|
boolean |
equals(Object obj)
|
String |
getSuggestedClassName()
Propose a name of generated java class for this resource |
static ICodeType |
getTypeOfPath(RythmEngine engine,
String s)
|
int |
hashCode()
|
protected abstract long |
lastModified()
|
protected static String |
path2CN(String path)
|
boolean |
refresh()
Refresh resource if necessary |
protected abstract String |
reload()
|
void |
setEngine(RythmEngine engine)
Set engine instance to the resource |
String |
tagName()
Return non-null value if this resource present a tag |
protected Long |
userCheckInterval()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.rythmengine.resource.ITemplateResource |
---|
getKey, isValid |
Field Detail |
---|
protected static final ILogger logger
protected String cache
protected long nextCheckPoint
Constructor Detail |
---|
public TemplateResourceBase()
public TemplateResourceBase(RythmEngine engine)
Method Detail |
---|
public void setEngine(RythmEngine engine)
ITemplateResource
setEngine
in interface ITemplateResource
protected RythmEngine engine()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
protected abstract long defCheckInterval()
protected Long userCheckInterval()
protected abstract long lastModified()
protected abstract String reload()
public String asTemplateContent()
ITemplateResource
asTemplateContent
in interface ITemplateResource
public final boolean refresh()
ITemplateResource
refresh
in interface ITemplateResource
public String getSuggestedClassName()
ITemplateResource
getSuggestedClassName
in interface ITemplateResource
public String tagName()
ITemplateResource
tagName
in interface ITemplateResource
public static ICodeType getTypeOfPath(RythmEngine engine, String s)
public ICodeType codeType()
ITemplateResource
codeType
in interface ITemplateResource
protected static String path2CN(String path)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |