Class Mounts.Builder
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.mount.Mounts.Builder
-
- Enclosing class:
- Mounts
public static final class Mounts.Builder extends java.lang.Object
Provides a fluent API from creatingMountInfoProvider
instances
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MountInfoProvider
build()
Creates a newMountInfoProvider
Mounts.Builder
mount(java.lang.String name, boolean readOnly, java.util.List<java.lang.String> pathsSupportingFragments, java.util.List<java.lang.String> paths)
Adds a new Mount instance with the specified parametersMounts.Builder
mount(java.lang.String name, java.lang.String... paths)
Adds a new read-writeMount
with the specified name and pathsMounts.Builder
readOnlyMount(java.lang.String name, java.lang.String... paths)
Adds a new read-only Mount with the specified name and paths
-
-
-
Method Detail
-
mount
public Mounts.Builder mount(java.lang.String name, java.lang.String... paths)
Adds a new read-writeMount
with 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(java.lang.String name, java.lang.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(java.lang.String name, boolean readOnly, java.util.List<java.lang.String> pathsSupportingFragments, java.util.List<java.lang.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
-
-