Class JsonOsgiConfigUtil


  • public final class JsonOsgiConfigUtil
    extends Object
    Transforms a combined JSON file to provisioning model with OSGi configurations and repoinit statements.
    • Method Detail

      • readToProvisioningModel

        public static org.apache.sling.provisioning.model.Model readToProvisioningModel​(File file)
                                                                                 throws IOException
        Read JSON file content to a map.
        Parameters:
        file - JSON file
        Returns:
        Map containing JSON content
        Throws:
        IOException - I/O exception