You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bu...@apache.org on 2016/08/18 12:15:38 UTC

svn commit: r995385 - in /websites/staging/sling/trunk/content: ./ documentation/bundles/repository-initialization.html

Author: buildbot
Date: Thu Aug 18 12:15:38 2016
New Revision: 995385

Log:
Staging update by buildbot for sling

Modified:
    websites/staging/sling/trunk/content/   (props changed)
    websites/staging/sling/trunk/content/documentation/bundles/repository-initialization.html

Propchange: websites/staging/sling/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Thu Aug 18 12:15:38 2016
@@ -1 +1 @@
-1756765
+1756768

Modified: websites/staging/sling/trunk/content/documentation/bundles/repository-initialization.html
==============================================================================
--- websites/staging/sling/trunk/content/documentation/bundles/repository-initialization.html (original)
+++ websites/staging/sling/trunk/content/documentation/bundles/repository-initialization.html Thu Aug 18 12:15:38 2016
@@ -190,7 +190,6 @@ of the repoinit parser to a JCR reposito
 
 
 <h2 id="providing-repoinit-statements-from-the-sling-provisioning-model-or-other-urls">Providing repoinit statements from the Sling provisioning model or other URLs<a class="headerlink" href="#providing-repoinit-statements-from-the-sling-provisioning-model-or-other-urls" title="Permanent link">&para;</a></h2>
-<p>This requires the <code>org.apache.sling.provisioning.model</code> bundle, version 1.4.2 or later.</p>
 <p>All bundles required for this feature need to be active before the <code>SlingRepository</code> service starts.</p>
 <p>From version 1.0.2 of the <code>org.apache.sling.jcr.repoinit</code> bundle, the <code>o.a.s.jcr.repoinit.RepositoryInitializer</code> component uses an OSGi 
 configuration as shown in this example to define where to read repoinit statements:</p>
@@ -205,6 +204,7 @@ configuration as shown in this example t
 <h3 id="references-to-sling-provisioning-model-additional-sections">References to Sling Provisioning Model additional sections<a class="headerlink" href="#references-to-sling-provisioning-model-additional-sections" title="Permanent link">&para;</a></h3>
 <p>The <code>slingstart-maven-plugin</code>, from V1.4.2 on, allows for embedding so-called "additional sections" in the Sling provisioning model by starting
 their name with a colon.</p>
+<p>At runtime this requires the <code>org.apache.sling.provisioning.model</code> bundle, version 1.4.2 or later.</p>
 <p>The <code>o.a.s.jcr.repoinit</code> bundle can use this feature to execute <code>repoinit</code> statements provided by Sling provisioning models, as in this 
 provisioning model example fragment:</p>
 <div class="codehilite"><pre><span class="k">[:repoinit]</span>
@@ -220,17 +220,18 @@ provisioning model example fragment:</p>
 
 
 <p>Where <em>model</em> means "use the provisioning model format", <em>repoinitTwo</em> is the name of the additional section to read statements from in the provisioning 
-model (without the leading colon) and <em>context:/resources/...</em> is the URL to use to retrieve the provisioning model. </p>
+model (without the leading colon) and <em>context:/resources/...</em> is the URL to use to retrieve the provisioning model.</p>
+<p>In this example the URL uses the <em>context</em> scheme defined by the Sling Launchpad, but any scheme can be used provided a suitable URL handler is active.</p>
 <p>The section name in that reference is optional and defaults to <em>repoinit</em>. If it's not specified the <code>@</code> should be omitted as well.</p>
 <h3 id="references-to-urls-providing-raw-repoinit-statements">References to URLs providing raw repoinit statements<a class="headerlink" href="#references-to-urls-providing-raw-repoinit-statements" title="Permanent link">&para;</a></h3>
-<p>Configuring <code>RepositoryInitializer</code> like in this example, with the <em>raw</em> prefix, means that its content is passed as is to the repoinit parser:</p>
+<p>Using a <code>RepositoryInitializer</code> reference like in this example, with the <em>raw</em> prefix, means that its content is passed as is to the repoinit parser:</p>
 <div class="codehilite"><pre><span class="n">raw</span><span class="o">:</span><span class="n">classpath</span><span class="o">://</span><span class="n">some</span><span class="o">-</span><span class="n">repoinit</span><span class="o">-</span><span class="n">file</span><span class="o">.</span><span class="na">txt</span>
 </pre></div>
 
 
-<p>Which points to a <code>classpath:</code> URL to provide the raw repoinit statements.</p>
+<p>Which points to a <code>classpath:</code> URL to provide the raw repoinit statements in this example, but again any valid URL scheme can be used.</p>
       <div class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;">
-        Rev. 1756765 by bdelacretaz on Thu, 18 Aug 2016 12:07:39 +0000
+        Rev. 1756768 by bdelacretaz on Thu, 18 Aug 2016 12:15:30 +0000
       </div>
       <div class="trademarkFooter"> 
         Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project