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.ObjectProvides a fluent API from creatingMountInfoProviderinstances 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MountInfoProviderbuild()Creates a newMountInfoProviderMounts.Buildermount(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.Buildermount(java.lang.String name, java.lang.String... paths)Adds a new read-writeMountwith the specified name and pathsMounts.BuilderreadOnlyMount(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-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(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
 
 
 - 
 
 -