org.apache.tapestry5.internal.services
Class TemplateParserImpl
java.lang.Object
org.apache.tapestry5.internal.services.TemplateParserImpl
- All Implemented Interfaces:
- javax.xml.stream.XMLResolver, TemplateParser
public class TemplateParserImpl
- extends Object
- implements TemplateParser, javax.xml.stream.XMLResolver
Responsible for acquiring a StAX reader and configuring an instance of StaxTemplateParser,
which does all the real work. This is dependent on a few features of StAX2, and therefore, on the Woodstock StAX
parser.
- Since:
- 5.1.0.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemplateParserImpl
public TemplateParserImpl(Map<String,URL> configuration,
@Symbol(value="tapestry.compress-whitespace")
boolean defaultCompressWhitespace)
parseTemplate
public ComponentTemplate parseTemplate(Resource templateResource)
- Description copied from interface:
TemplateParser
- Parses the given resource into a component template.
- Specified by:
parseTemplate in interface TemplateParser
- Parameters:
templateResource - the path
- Returns:
- the parsed template contents
resolveEntity
public Object resolveEntity(String publicID,
String systemID,
String baseURI,
String namespace)
throws javax.xml.stream.XMLStreamException
- Specified by:
resolveEntity in interface javax.xml.stream.XMLResolver
- Throws:
javax.xml.stream.XMLStreamException
Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.