Author: buildbot
Date: Wed Jun 22 13:00:02 2016
New Revision: 991183

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 Wed Jun 22 13:00:02 2016
@@ -1 +1 @@
-1749653
+1749677

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
 Wed Jun 22 13:00:02 2016
@@ -167,9 +167,23 @@ registered by default with a service ran
 
 
 <h2 
id="embedding-repoinit-statements-in-the-sling-provisioning-model">Embedding 
repoinit statements in the Sling provisioning model<a class="headerlink" 
href="#embedding-repoinit-statements-in-the-sling-provisioning-model" 
title="Permanent link">&para;</a></h2>
-<p>TODO: explain this</p>
+<p>The <code>slingstart-maven-plugin</code>, from V1.4.2 on, allows for 
embedding "special" sections in the Sling provisioning model by starting
+their name with a colon.</p>
+<p>The <code>o.a.s.repoinit.oak-jcr</code> bundle uses this feature to execute 
<code>repoinit</code> statements provided by Sling provisioning models, as in 
this 
+example:</p>
+<div class="codehilite"><pre><span class="k">[:repoinit]</span>
+<span class="err">create</span> <span class="err">path</span> <span 
class="err">/repoinit/provisioningModelTest</span>
+
+<span class="err">create</span> <span class="err">service</span> <span 
class="err">user</span> <span class="err">provisioningModelUser</span>
+</pre></div>
+
+
+<p>The <code>org.apache.sling.repoinit.jcr.RepositoryInitializer</code> 
component reads the provisioning model text using a configurable URL, which 
defaults to <code>context:/resources/provisioning/model.txt</code> to get the 
model that our <code>maven-slingstart-plugin</code> embeds in the Sling 
launchpad, the <code>context:</code> protocol being handled by the launchpad's 
<code>ContextProtocolHandler</code>.</p>
+<p>Configuring a different URL and if needed creating a protocol handler will 
allow other launchers to provide the provisioning model, or directly provide 
repoinit statements.</p>
+<p>This also 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>
       <div class="timestamp" style="margin-top: 30px; font-size: 80%; 
text-align: right;">
-        Rev. 1749653 by bdelacretaz on Wed, 22 Jun 2016 11:09:40 +0000
+        Rev. 1749677 by bdelacretaz on Wed, 22 Jun 2016 12:59:48 +0000
       </div>
       <div class="trademarkFooter"> 
         Apache Sling, Sling, Apache, the Apache feather logo, and the Apache 
Sling project


Reply via email to