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
FieldsModifier and TypeFieldDescriptionstatic final RepositoryInitializer
Default implementation makes no changes to the repository. -
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize
(@NotNull NodeBuilder builder) Initializes repository content.
-
Field Details
-
DEFAULT
Default implementation makes no changes to the repository.
-
-
Method Details
-
initialize
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
-