Class DynamicTemplateParserImpl
- java.lang.Object
-
- org.apache.tapestry5.internal.dynamic.DynamicTemplateParserImpl
-
- All Implemented Interfaces:
UpdateListener,DynamicTemplateParser
public class DynamicTemplateParserImpl extends java.lang.Object implements DynamicTemplateParser, UpdateListener
-
-
Constructor Summary
Constructors Constructor Description DynamicTemplateParserImpl(ClasspathURLConverter converter, BindingSource bindingSource, PageSource pageSource, TemplateParser componentTemplateParser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckForUpdates()Invoked to force the receiver to check for updates to whatever underlying resources it makes use of.DynamicTemplateparseTemplate(Resource resource)Given a Resource, parse the XML file into a template.voidregisterAsUpdateListener(UpdateListenerHub hub)
-
-
-
Constructor Detail
-
DynamicTemplateParserImpl
public DynamicTemplateParserImpl(ClasspathURLConverter converter, BindingSource bindingSource, PageSource pageSource, TemplateParser componentTemplateParser)
-
-
Method Detail
-
registerAsUpdateListener
@PostInjection public void registerAsUpdateListener(UpdateListenerHub hub)
-
parseTemplate
public DynamicTemplate parseTemplate(Resource resource)
Description copied from interface:DynamicTemplateParserGiven a Resource, parse the XML file into a template. The result is cached (using the Resource itself as the key). The DynamicTemplateParser is change aware; it will clear its cache if any underlying Resource changes, and will clear the Tapestry page cache as well.- Specified by:
parseTemplatein interfaceDynamicTemplateParser
-
checkForUpdates
public void checkForUpdates()
Description copied from interface:UpdateListenerInvoked to force the receiver to check for updates to whatever underlying resources it makes use of.- Specified by:
checkForUpdatesin interfaceUpdateListener
-
-