Class InitialContent

java.lang.Object
org.apache.jackrabbit.oak.InitialContent
All Implemented Interfaces:
JcrConstants, RepositoryInitializer, NodeTypeConstants

public class InitialContent extends Object implements RepositoryInitializer, NodeTypeConstants
InitialContent implements a RepositoryInitializer the creates the initial JCR/Oak repository structure. This includes creating
 - the root node
 - jcr:system node and it subtree
      - version storage
      - activities
      - built-in node types
      - built-in namespaces
 - some basic index definitions required for a functional JCR repository
 
  • Constructor Details

    • InitialContent

      public InitialContent()
  • Method Details

    • initialize

      public void initialize(@NotNull @NotNull NodeBuilder builder)
      Description copied from interface: RepositoryInitializer
      Initializes repository content. This method is called as soon as a repository becomes available. Note that the repository may already have been initialized, so the implementation of this method should check for that before blindly adding new content.
      Specified by:
      initialize in interface RepositoryInitializer
      Parameters:
      builder - builder for accessing and modifying repository content
    • withPrePopulatedVersionStore

      public InitialContent withPrePopulatedVersionStore()
      Instructs the initializer to pre-populate the version store with intermediate nodes.
      Returns:
      this instance.