Class CompositeWorkspaceInitializer
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.lifecycle.CompositeWorkspaceInitializer
-
- All Implemented Interfaces:
WorkspaceInitializer
public class CompositeWorkspaceInitializer extends java.lang.Object implements WorkspaceInitializer
Composite repository initializer that delegates theinitialize(org.apache.jackrabbit.oak.spi.state.NodeBuilder, String)
calls in sequence to all the component initializers.
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.oak.spi.lifecycle.WorkspaceInitializer
DEFAULT
-
-
Constructor Summary
Constructors Constructor Description CompositeWorkspaceInitializer(@NotNull java.util.Collection<WorkspaceInitializer> trackers)
CompositeWorkspaceInitializer(@NotNull WorkspaceInitializer... initializers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize(NodeBuilder builder, java.lang.String workspaceName)
Initialize the content of a new workspace.
-
-
-
Constructor Detail
-
CompositeWorkspaceInitializer
public CompositeWorkspaceInitializer(@NotNull @NotNull java.util.Collection<WorkspaceInitializer> trackers)
-
CompositeWorkspaceInitializer
public CompositeWorkspaceInitializer(@NotNull @NotNull WorkspaceInitializer... initializers)
-
-
Method Detail
-
initialize
public void initialize(NodeBuilder builder, java.lang.String workspaceName)
Description copied from interface:WorkspaceInitializer
Initialize the content of a new workspace. This method is called before the workspace becomes available.- Specified by:
initialize
in interfaceWorkspaceInitializer
- Parameters:
builder
- builder for accessing and modifying the workspaceworkspaceName
- The name of the workspace that is being initialized.
-
-