org.springframework.webflow.engine.model.builder.xml
Interface DocumentLoader

All Known Implementing Classes:
DefaultDocumentLoader

public interface DocumentLoader

A generic strategy interface encapsulating the logic to load an XML-based document.

Author:
Keith Donald

Method Summary
 Document loadDocument(org.springframework.core.io.Resource resource)
          Load the XML-based document from the external resource.
 

Method Detail

loadDocument

Document loadDocument(org.springframework.core.io.Resource resource)
                      throws IOException,
                             ParserConfigurationException,
                             SAXException
Load the XML-based document from the external resource.

Parameters:
resource - the document resource
Returns:
the loaded (parsed) document
Throws:
IOException - an exception occured accessing the resource input stream
ParserConfigurationException - an exception occured building the document parser
SAXException - a error occured during document parsing