org.rythmengine.resource
Class ClasspathTemplateResource

java.lang.Object
  extended by org.rythmengine.resource.TemplateResourceBase
      extended by org.rythmengine.resource.ClasspathTemplateResource
All Implemented Interfaces:
Serializable, ITemplateResource

public class ClasspathTemplateResource
extends TemplateResourceBase
implements ITemplateResource

Created by IntelliJ IDEA. User: luog Date: 20/01/12 Time: 11:25 PM To change this template use File | Settings | File Templates.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.rythmengine.resource.TemplateResourceBase
cache, logger, nextCheckPoint
 
Constructor Summary
ClasspathTemplateResource(String path)
           
ClasspathTemplateResource(String path, RythmEngine engine)
           
 
Method Summary
protected  long defCheckInterval()
           
 boolean equals(Object obj)
           
 String getKey()
          The unique identifier used to fetch this resource from ResourceManager
 String getSuggestedClassName()
          Propose a name of generated java class for this resource
 boolean isValid()
          Whether this resource is a valid resource
protected  long lastModified()
           
 String reload()
           
protected  Long userCheckInterval()
           
 
Methods inherited from class org.rythmengine.resource.TemplateResourceBase
asTemplateContent, codeType, engine, getTypeOfPath, hashCode, path2CN, refresh, setEngine, tagName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.rythmengine.resource.ITemplateResource
asTemplateContent, codeType, refresh, setEngine, tagName
 

Constructor Detail

ClasspathTemplateResource

public ClasspathTemplateResource(String path)

ClasspathTemplateResource

public ClasspathTemplateResource(String path,
                                 RythmEngine engine)
Method Detail

getKey

public String getKey()
Description copied from interface: ITemplateResource
The unique identifier used to fetch this resource from ResourceManager

Specified by:
getKey in interface ITemplateResource
Returns:
the key of the resource

reload

public String reload()
Specified by:
reload in class TemplateResourceBase

lastModified

protected long lastModified()
Specified by:
lastModified in class TemplateResourceBase

isValid

public boolean isValid()
Description copied from interface: ITemplateResource
Whether this resource is a valid resource

Specified by:
isValid in interface ITemplateResource
Returns:
true if it's a valid resource

equals

public boolean equals(Object obj)
Overrides:
equals in class TemplateResourceBase

defCheckInterval

protected long defCheckInterval()
Specified by:
defCheckInterval in class TemplateResourceBase

userCheckInterval

protected Long userCheckInterval()
Overrides:
userCheckInterval in class TemplateResourceBase

getSuggestedClassName

public String getSuggestedClassName()
Description copied from interface: ITemplateResource
Propose a name of generated java class for this resource

Specified by:
getSuggestedClassName in interface ITemplateResource
Overrides:
getSuggestedClassName in class TemplateResourceBase
Returns:
suggested class name


Copyright © 2013. All Rights Reserved.