commit | cc6c4e337a6b157ba8f51ff27ccf1c4fd407934d | [log] [tgz] |
---|---|---|
author | Radu Cotescu <radu@apache.org> | Mon Jul 22 09:39:40 2019 +0200 |
committer | Radu Cotescu <cotescu@adobe.com> | Mon Jul 22 11:57:15 2019 +0200 |
tree | 6cf98de0eb93679df0b294880ac73f4a2803a885 | |
parent | 3f9530908efb60cc691f30655fd05131d147c8cc [diff] |
SLING-8570 - Extract a generic Content Parser API from org.apache.sling.jcr.contentparser with pluggable implementations * completely decoupled the API from implementations - the ContentParser API doesn't suggest any content types any more * removed JSON specific parser options from the ParserOptions class * made the ParserOptions class extendable * switched exported API packages to version 2.0.0, to eliminate all possible confusion with the older org.apache.sling.jcr.contentparser API
This module is part of the Apache Sling project.
The Apache Sling Content Parser for JackRabbit FileVault XML provides support for parsing XML files into Apache Sling resource trees, by implementing the API provided by the org.apache.sling.contentparser.api
bundle.
To obtain a reference to the JackRabbit FileVault XML content parser just filter on the ContentParser.SERVICE_PROPERTY_CONTENT_TYPE
service registration property:
@Reference(target = "(" + ContentParser.SERVICE_PROPERTY_CONTENT_TYPE + "=jcr-xml)") private ContentParser jcrXmlParser;