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 2024/02/06 13:07:36 UTC

(sling-site) 01/02: SLING-12243 - mention standalone execution of repoinit statements

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

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

commit c2ccc7a5ab7b7f3f377892775e654268c2dbaf62
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Tue Feb 6 14:03:31 2024 +0100

    SLING-12243 - mention standalone execution of repoinit statements
---
 .../content/documentation/bundles/repository-initialization.md     | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/main/jbake/content/documentation/bundles/repository-initialization.md b/src/main/jbake/content/documentation/bundles/repository-initialization.md
index 68811bdf5..11ba3c018 100644
--- a/src/main/jbake/content/documentation/bundles/repository-initialization.md
+++ b/src/main/jbake/content/documentation/bundles/repository-initialization.md
@@ -55,6 +55,13 @@ executed before any other statements. Next, all statements registering nodetypes
 all other statements are executed in the order they are defined. This reordering is intended to avoid issues due to
 missing namespaces, nodetypes or privileges when content is created. 
 
+## Executing repoinit statements outside of the startup sequence
+
+As demonstrated by the
+[MinimalRepoInitIT](https://github.com/apache/sling-org-apache-sling-jcr-repoinit/blob/master/src/test/java/org/apache/sling/jcr/repoinit/it/MinimalRepoInitIT.java#L43)
+test, the `RepoInitParser` and `JcrRepoInitOpsProcessor`services allow for parsing and executing repoinit statements independently
+of the repository startup sequence.
+
 ## Validating repoinit statements
 
 There are multiple means to validate the syntax of repoinit statements (only leveraging the parser, but not the actual JCR Repoinit implementation) outlined below.