Class Mounts.Builder
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.mount.Mounts.Builder
-
- Enclosing class:
- Mounts
public static final class Mounts.Builder extends Object
Provides a fluent API from creatingMountInfoProviderinstances
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MountInfoProviderbuild()Creates a newMountInfoProviderMounts.Buildermount(String name, boolean readOnly, List<String> pathsSupportingFragments, List<String> paths)Adds a new Mount instance with the specified parametersMounts.Buildermount(String name, String... paths)Adds a new read-writeMountwith the specified name and pathsMounts.BuilderreadOnlyMount(String name, String... paths)Adds a new read-only Mount with the specified name and paths
-
-
-
Method Detail
-
mount
public Mounts.Builder mount(String name, String... paths)
Adds a new read-writeMountwith the specified name and paths- Parameters:
name- the name of the mountpaths- the paths handled by the mount- Returns:
- this builder instance
-
readOnlyMount
public Mounts.Builder readOnlyMount(String name, String... paths)
Adds a new read-only Mount with the specified name and paths- Parameters:
name- the name of the mountpaths- the paths handled by the mount- Returns:
- this builder instance
-
mount
public Mounts.Builder mount(String name, boolean readOnly, List<String> pathsSupportingFragments, List<String> paths)
Adds a new Mount instance with the specified parameters- Parameters:
name- the name of the mountreadOnly- true for read-only paths, false otherwisepathsSupportingFragments- the paths supporting fragments, seeMount.getPathFragmentName()paths- the paths handled by the mount- Returns:
- this builder instance
-
build
public MountInfoProvider build()
Creates a newMountInfoProvider- Returns:
- a newly-created MountInfoProvider
-
-