Class CompositeInitializer
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.lifecycle.CompositeInitializer
-
- All Implemented Interfaces:
RepositoryInitializer
public class CompositeInitializer extends java.lang.Object implements RepositoryInitializer
Composite repository initializer that delegates theinitialize(NodeBuilder)
call in sequence to all the component initializers.
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.oak.spi.lifecycle.RepositoryInitializer
DEFAULT
-
-
Constructor Summary
Constructors Constructor Description CompositeInitializer(java.util.Collection<RepositoryInitializer> trackers)
CompositeInitializer(RepositoryInitializer... initializers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize(@NotNull NodeBuilder builder)
Initializes repository content.
-
-
-
Constructor Detail
-
CompositeInitializer
public CompositeInitializer(java.util.Collection<RepositoryInitializer> trackers)
-
CompositeInitializer
public CompositeInitializer(RepositoryInitializer... initializers)
-
-
Method Detail
-
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 interfaceRepositoryInitializer
- Parameters:
builder
- builder for accessing and modifying repository content
-
-