You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2018/01/24 13:54:03 UTC

[sling-site] branch asf-site updated: Document repoinit statements provided as OSGi factory configs

This is an automated email from the ASF dual-hosted git repository.

bdelacretaz pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/sling-site.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 88e99cc  Document repoinit statements provided as OSGi factory configs
88e99cc is described below

commit 88e99ccbd314ec43210ba20120425dfeee332ff3
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Wed Jan 24 14:53:41 2018 +0100

    Document repoinit statements provided as OSGi factory configs
---
 documentation/bundles/repository-initialization.html | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/documentation/bundles/repository-initialization.html b/documentation/bundles/repository-initialization.html
index 729d7b1..00fffa0 100644
--- a/documentation/bundles/repository-initialization.html
+++ b/documentation/bundles/repository-initialization.html
@@ -212,9 +212,16 @@ create service user provisioningModelUser
 <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>
 <pre><code>raw:classpath://some-repoinit-file.txt
 </code></pre>
-<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></section></div></div>            
+<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>
+<h2><a href="#providing-repoinit-statements-from-osgi-factory-configurations" name="providing-repoinit-statements-from-osgi-factory-configurations">Providing repoinit statements from OSGi factory configurations</a></h2>
+<p>From version 1.1.6 of the <code>org.apache.sling.jcr.repoinit</code> bundle, repoinit statements can also be provided by OSGi factory configurations which use the <code>org.apache.sling.jcr.repoinit.RepositoryInitializer</code> factory PID.</p>
+<p>Such configurations have two optional fields:</p>
+<ul>
+  <li>A multi-value <code>references</code> field with each value providing the URL (as a String) of raw repoinit statements.</li>
+  <li>A multi-value <code>scripts</code> field with each value providing repoinit statements as plain text in a String.</li>
+</ul></section></div></div>            
             <div class="footer">
-<div class="revisionInfo">Last modified by <span class="author">Bertrand Delacretaz</span> on <span class="comment">Thu Dec 21 15:54:20 2017 +0100</span></div>                <p>
+<div class="revisionInfo">Last modified by <span class="author">Bertrand Delacretaz</span> on <span class="comment">Wed Jan 24 14:52:01 2018 +0100</span></div>                <p>
                     Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
                 </p><p>
                     Copyright © 2011-2017 The Apache Software Foundation.

-- 
To stop receiving notification emails like this one, please contact
bdelacretaz@apache.org.