|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry.engine.DefaultTemplateSource
public class DefaultTemplateSource
Default implementation of ITemplateSource
. Templates, once parsed,
stay in memory until explicitly cleared.
An instance of this class acts as a singleton shared by all sessions, so it must be threadsafe.
Field Summary |
---|
Fields inherited from interface org.apache.tapestry.engine.ITemplateSource |
---|
TEMPLATE_ASSET_NAME, TEMPLATE_TAG_PARAMETER_NAME |
Constructor Summary | |
---|---|
DefaultTemplateSource()
|
Method Summary | |
---|---|
ComponentTemplate |
getTemplate(IRequestCycle cycle,
IComponent component)
Reads the template for the component. |
void |
renderDescription(IMarkupWriter writer)
Object should render a description of itself to the writer. |
void |
reset()
Clears the template cache. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultTemplateSource()
Method Detail |
---|
public void reset()
reset
in interface ITemplateSource
public ComponentTemplate getTemplate(IRequestCycle cycle, IComponent component)
Returns null if the template can't be found.
getTemplate
in interface ITemplateSource
cycle
- The request cycle loading the template; this is required
in some cases when the template is loaded from an IAsset
.component
- The component for which a template should be loaded.public String toString()
toString
in class Object
public void renderDescription(IMarkupWriter writer)
IRenderDescription
renderDescription
in interface IRenderDescription
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |