commit | ca5ec09f01291cffac1e37a1e30391058c805835 | [log] [tgz] |
---|---|---|
author | Radu Cotescu <cotescu@adobe.com> | Wed Jul 24 15:02:03 2019 +0200 |
committer | Radu Cotescu <cotescu@adobe.com> | Wed Jul 24 15:04:45 2019 +0200 |
tree | 62e2738452afadef4b38354b349999dfe7ca1e40 | |
parent | c31eca0679fc8bbd0fcf71d249d60a1b8448b707 [diff] |
SLING-8570 - Extract a generic Content Parser API from org.apache.sling.jcr.contentparser with pluggable implementations * removed the ParseException and replaced it with IOException * minor code cleanup * improved code coverage
This module is part of the Apache Sling project.
The Apache Sling Content Parser for JSON provides support for parsing JSON 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 JSON content parser just filter on the ContentParser.SERVICE_PROPERTY_CONTENT_TYPE
service registration property:
@Reference(target = "(" + ContentParser.SERVICE_PROPERTY_CONTENT_TYPE + "=json)") private ContentParser jsonParser;