Create customisable readers --------------------------- Key: FOR-943 URL: http://issues.apache.org/jira/browse/FOR-943 Project: Forrest Issue Type: Improvement Components: Forrest2 Reporter: Ross Gardler
The Affiliate Product Catalogue example of Forrest 2 creates a reader for files of XML format that do not have a provided schema with which to identify further processing steps. This class should become a Spring Bean that allows customisation of the generated document type and the psuedo protocol used to select it, e.g. <bean id="fooProtocol" class="org.apache.forrest.examples.affiliateProductCatalogue.reader.TradeDoublerReader" > <property name="docType" value="org.foo.Bar" /> </bean> This reader should then delegate to a second reader to actually retrieve the document. So we can have locationmap entries such as: <location pattern="classpath/foo.*"> <source href="fooProtocol:classpath:/xdocs/exampleFeed.xml"/> </location> <location pattern="file/foo.*"> <source href="fooProtocol:file:/xdocs/exampleFeed.xml"/> </location> <location pattern="http/foo.*"> <source href="fooProtocol:http:/xdocs/exampleFeed.xml"/> </location> etc. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira