Interface RepositoryInitializer

All Known Implementing Classes:
BundlingConfigInitializer, BundlingConfigInitializer, CompositeInitializer, InitialContent

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 Summary

    Fields
    Modifier and Type
    Field
    Description
    Default implementation makes no changes to the repository.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    initialize(@NotNull NodeBuilder builder)
    Initializes repository content.
  • Field Details

    • DEFAULT

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

    • 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