Interface RepositoryInitializer

  • All Known Implementing Classes:
    CompositeInitializer, InitialContent, LuceneInitializerHelper

    public interface RepositoryInitializer
    Initializer of repository content. A component that needs to add specific content to a new repository can implement this interface. Then when a repository becomes available, all the configured initializers are invoked in sequence.
    • Field Detail

      • DEFAULT

        static final RepositoryInitializer DEFAULT
        Default implementation makes no changes to the repository.
    • Method Detail

      • initialize

        void initialize​(@NotNull
                        @NotNull NodeBuilder builder)
        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.
        Parameters:
        builder - builder for accessing and modifying repository content