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 Summary
Fields Modifier and Type Field Description static RepositoryInitializer
DEFAULT
Default implementation makes no changes to the repository.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
initialize(@NotNull NodeBuilder builder)
Initializes repository content.
-
-
-
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
-
-